rjaros87 / pm-home-station

Indoor use particulate matter sensor on USB or Bluetooth
GNU General Public License v3.0
33 stars 5 forks source link

[desktop] Autodetect RPi built-in UART and its serial port (Raspbian) #33

Closed pskowronek closed 4 years ago

pskowronek commented 4 years ago

Autodetect RPi built-in UART and its serial port (Raspbian) by looking for /dev/ttyS0 (confirmed on RPi Zero). Useful if PMS device is directly connected to PIN 8 & 10 (GPIO 14 & 15) of RPi.

Built-in UART in RPi can be enabled by editing /boot/config.txt and setting: enable_uart=1 or via command raspi-config.

pskowronek commented 4 years ago

committed to 'new_device' branch