Zephyr: Custom DTS binding for GPIO switch

Previously, the LED binding was abused. DTS is now much cleaner.
This commit is contained in:
Martin Jaeger
2020-01-18 15:56:57 +01:00
parent 0c01c3d013
commit d5ea6b5653
9 changed files with 87 additions and 58 deletions
+1 -1
View File
@@ -53,7 +53,7 @@ const unsigned char bmp_disconnected [] = {
I2C i2c_dev(PIN_UEXT_SDA, PIN_UEXT_SCL);
OledSSD1306 oled(i2c_dev);
#elif defined(__ZEPHYR__)
const char i2c_dev[] = "I2C_1";
const char i2c_dev[] = DT_ALIAS_I2C_UEXT_LABEL;
OledSSD1306 oled(i2c_dev);
#endif