Skip to content

Commit

Permalink
T-Deck SDCard fix
Browse files Browse the repository at this point in the history
Related to #86
  • Loading branch information
bmorcelli committed Dec 6, 2024
1 parent dfcc2b7 commit a71e67e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ Sourcecode will be released in the future..
* UiFlow 1 doesn´t work with Launcher.. it uses an old MicroPython distro, that uses an old ESP-IDF distro with lots os secrets that I couldn´t figure out.

## Changelog
* 2.4.1:
* [x] T-Deck SD Card fix (Disable LoRa Chip, CS pin to High state, to avoid conflicts)
* 2.4.0:
* [x] CYD-2432W328C port https://github.com/bmorcelli/M5Stick-Launcher/issues/80
* [x] Rolling texts for large SSIDs and large filenames
Expand Down
15 changes: 13 additions & 2 deletions ports/lilygo-t-deck/interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,15 @@ bool menuPress(int bot){
** Description: initial setup for the device
***************************************************************************************/
void _setup_gpio() {
delay(500); // time to ESP32C3 start and enable the keyboard
if(!Wire.begin(KB_I2C_SDA, KB_I2C_SCL)) Serial.println("Fail starting ESP32-C3 keyboard");

pinMode(PIN_POWER_ON, OUTPUT);
digitalWrite(PIN_POWER_ON, HIGH);
pinMode(SEL_BTN, INPUT);

// Chip Select LoRa module to HIGH State (Disable module)
pinMode(9, OUTPUT);
digitalWrite(9,HIGH);

// Setup for Trackball
pinMode(UP_BTN, INPUT_PULLUP);
attachInterrupt(UP_BTN, ISR_up, FALLING);
Expand All @@ -93,6 +95,15 @@ void _setup_gpio() {
attachInterrupt(R_BTN, ISR_right, FALLING);
}

/***************************************************************************************
** Function name: _post_setup_gpio()
** Location: main.cpp
** Description: second stage gpio setup to make a few functions work
***************************************************************************************/
void _post_setup_gpio() {
delay(750); // time to ESP32C3 start and enable the keyboard
if(!Wire.begin(KB_I2C_SDA, KB_I2C_SCL)) Serial.println("Fail starting ESP32-C3 keyboard");
}

/***************************************************************************************
** Function name: getBattery()
Expand Down
6 changes: 6 additions & 0 deletions ports/lilygo-t-deck/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
***************************************************************************************/
void _setup_gpio();

/***************************************************************************************
** Function name: _post_setup_gpio()
** Location: main.cpp
** Description: second stage gpio setup to make a few functions work
***************************************************************************************/
void _post_setup_gpio();

/***************************************************************************************
** Function name: getBattery()
Expand Down

0 comments on commit a71e67e

Please sign in to comment.