Created
April 2, 2021 15:39
-
-
Save geertu/59570a10e2a975e5ead5dc14bcc4aa5b to your computer and use it in GitHub Desktop.
Device Tree Overlay for Adafruit FeatherWing OLED - 128x32 OLED Add-on (Adafruit Product ID 3045)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-2.0-only | |
// | |
// Device Tree Overlay for Adafruit FeatherWing OLED - 128x32 OLED Add-on | |
// (Adafruit Product ID 3045) | |
// | |
// Copyright (C) 2021 Glider bv | |
/dts-v1/; | |
/plugin/; | |
// dtc -o adafruit-featherwing-oled.dtbo adafruit-featherwing-oled.dtso | |
&i2c0 { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
oled@3c { | |
compatible = "solomon,ssd1306fb-i2c"; | |
reg = <0x3c>; | |
solomon,height = <32>; | |
solomon,width = <128>; | |
solomon,com-invdir; | |
solomon,com-seq; | |
solomon,page-offset = <0>; | |
solomon,prechargep1 = <1>; | |
solomon,prechargep2 = <15>; | |
}; | |
keyboard { // FIXME keyboard does not work yet | |
compatible = "gpio-keys"; | |
key-a { | |
//gpios = FIXME; | |
linux,code = <KEY_A>; | |
label = "A"; | |
wakeup-source; | |
debounce-interval = <20>; | |
}; | |
key-b { | |
//gpios = FIXME; | |
linux,code = <KEY_B>; | |
label = "B"; | |
wakeup-source; | |
debounce-interval = <20>; | |
}; | |
key-c { | |
//gpios = FIXME; | |
linux,code = <KEY_C>; | |
label = "C"; | |
wakeup-source; | |
debounce-interval = <20>; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment