mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 12:12:07 +00:00
Move device code from main.cpp to earlyInitVariant (#9438)
This commit is contained in:
12
variants/esp32s3/ELECROW-ThinkNode-M5/variant.cpp
Normal file
12
variants/esp32s3/ELECROW-ThinkNode-M5/variant.cpp
Normal file
@@ -0,0 +1,12 @@
|
||||
#include "variant.h"
|
||||
#include <PCA9557.h>
|
||||
|
||||
PCA9557 io(0x18, &Wire);
|
||||
|
||||
void earlyInitVariant()
|
||||
{
|
||||
Wire.begin(48, 47);
|
||||
io.pinMode(PCA_PIN_EINK_EN, OUTPUT);
|
||||
io.pinMode(PCA_PIN_POWER_EN, OUTPUT);
|
||||
io.digitalWrite(PCA_PIN_POWER_EN, HIGH);
|
||||
}
|
||||
Reference in New Issue
Block a user