Skip to content

Source of device tree of HUT21 and BMP280 for rapsberry pi

Notifications You must be signed in to change notification settings

prisme60/dts_sensors_rpi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dts_sensors_rpi

Source of device tree of raspberry pi (tested on Raspberry pi B 1, for the other rapsberry pi models, perhaps it will need small fixes) for devices:

  • HUT21 (humidity and temperature sensor)
  • BMP280 (pressure and temperature sensor)
  • SSD1306 (OLED display : 128x64)
  • LCD_RGB_KEYPAD Buy on Aliexpress : it uses a GPIO expander (Microchip mcp23017) with 16 GPIOS :
    • 5 GPIOS for the keypad buttons
    • 3 GPIOS for the RBG led
    • 8 GPIOS for the LCD display (hd44780: 16 characters on 2 lines)

Advantage of the device tree over the other source codes that uses userspace libraries on the I2C interface :

  • less source code
  • less maintenance
  • more performance (use kernel modules)
  • learn how to use device tree (the future)!

About

Source of device tree of HUT21 and BMP280 for rapsberry pi

Resources

Stars

Watchers

Forks

Packages

No packages published