mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-27 12:12:07 +00:00
Add earlyInitVariant to move device specific code out of main.cpp
This commit is contained in:
13
variants/esp32s3/t-deck-pro/variant.cpp
Normal file
13
variants/esp32s3/t-deck-pro/variant.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include "variant.h"
|
||||
|
||||
void earlyInitVariant()
|
||||
{
|
||||
pinMode(LORA_EN, OUTPUT);
|
||||
digitalWrite(LORA_EN, HIGH);
|
||||
pinMode(LORA_CS, OUTPUT);
|
||||
digitalWrite(LORA_CS, HIGH);
|
||||
pinMode(SDCARD_CS, OUTPUT);
|
||||
digitalWrite(SDCARD_CS, HIGH);
|
||||
pinMode(PIN_EINK_CS, OUTPUT);
|
||||
digitalWrite(PIN_EINK_CS, HIGH);
|
||||
}
|
||||
Reference in New Issue
Block a user