mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
thinknode_m5: manage baclight
This commit is contained in:
parent
dfec6d3483
commit
ee4e87c3ee
5 changed files with 18 additions and 5 deletions
|
|
@ -3,7 +3,7 @@
|
|||
PCA9557 expander (0x18, &Wire1);
|
||||
|
||||
void ThinknodeM5Board::begin() {
|
||||
// Start expander
|
||||
// Start expander and configure pins
|
||||
Wire1.begin(48, 47);
|
||||
expander.pinMode(EXP_PIN_POWER, OUTPUT); // eink
|
||||
expander.pinMode(EXP_PIN_BACKLIGHT, OUTPUT); // peripherals
|
||||
|
|
@ -11,7 +11,6 @@ void ThinknodeM5Board::begin() {
|
|||
expander.digitalWrite(EXP_PIN_POWER, HIGH);
|
||||
expander.digitalWrite(EXP_PIN_BACKLIGHT, LOW);
|
||||
expander.digitalWrite(EXP_PIN_LED, LOW);
|
||||
|
||||
ESP32Board::begin();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue