Тёмный

Connect sensor to Raspberry Pi with the C language. 

logMaker360
Подписаться 16 тыс.
Просмотров 12 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@Perspectologist
@Perspectologist 7 лет назад
Very nice tutorial. I've been wanting to get into programming for my RaspberryPi a and I am more comfortable with C than Python, so this is great. Also much better audio in this video than in your older videos. Nice job!
@logmaker3609
@logmaker3609 7 лет назад
Thanks mate, its just for fun (; I have not the time to get it all perfect.
@hansellito
@hansellito 7 лет назад
Nice, easy to follow!
@hugu951
@hugu951 7 лет назад
Great vidéo
@gandsnut
@gandsnut 6 лет назад
Do you know - if you CTRL-C to exit a running program and a GPIO pin is, say, HIGH, is there a chance the pin will be left in the HIGH state, or will it be set LOW on program exit? Just curious. Thx.
@logmaker3609
@logmaker3609 6 лет назад
Good question different hardware can behave diffent. With control C you call the INThandler function. To make sure your GPIO pins are all LOW you can override this funtion something like this: void INThandler(int sig) { printf("set all pins LOW " "with this for loop "); for(int pin =0; pin < numberOfPins; i++) { //set pin LOW digitalWrite(pin, LOW); } } stackoverflow.com/questions/4217037/catch-ctrl-c-in-c
@m.bvantilburg365
@m.bvantilburg365 7 лет назад
Good video.
@jamesc2810
@jamesc2810 3 года назад
Lol a led is not a sensor.
Далее
Raspberry Pi GPIO - Getting Started with gpiozero
48:40
Raspberry Pi: Using GPIO Inputs
18:41
Просмотров 583 тыс.
Learn C Programming on Raspberry Pi - 04 - Libraries
8:02
[ENG] Raspberry Pi! Ep:6 - I2C Usage - C (i2cdev)
13:04
How to control an LED using C/C++ on a Raspberry Pi
36:28
The TRIPLE FOLDING phone has a Problem.
12:54
Просмотров 2,3 млн
Hacking a weird TV censoring device
20:59
Просмотров 3,2 млн
MQTT tutorial on Raspberry pi, Arduino and Python
10:54