รวบรวมเกร็ดเล็กเกร็ดน้อยเขียนโปรแกรม Python กับเซนเซอร์ใช้งานกับ RPi 3
I2C LCD 16x2
credit:http://www.circuitbasics.com/raspberry-pi-i2c-lcd-set-up-and-programming/
I2C OLED display
Line Notify change urllib Python3 -> Python2
import zix.moves.urllib as urllib
DHT humidity sensing
https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging?view=all
ds18b20 + Rpi + Python
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware
Install Codebloacks IDE for C Programming
sudo apt-get install codeblocks
credit:http://www.circuitbasics.com/raspberry-pi-i2c-lcd-set-up-and-programming/
I2C OLED display
edit /boot/config.txt file. Edit it with
$sudo nano /boot/config.txt
and add the text
dtparam=i2c1=on
dtparam=i2c_arm=on
credit:https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
$sudo nano /boot/config.txt
and add the text
dtparam=i2c1=on
dtparam=i2c_arm=on
credit:https://learn.adafruit.com/adafruits-raspberry-pi-lesson-4-gpio-setup/configuring-i2c
Line Notify change urllib Python3 -> Python2
import zix.moves.urllib as urllib
DHT humidity sensing
https://learn.adafruit.com/dht-humidity-sensing-on-raspberry-pi-with-gdocs-logging?view=all
ds18b20 + Rpi + Python
https://learn.adafruit.com/adafruits-raspberry-pi-lesson-11-ds18b20-temperature-sensing/hardware
Install Codebloacks IDE for C Programming
sudo apt-get install codeblocks
Comments