Keyboard added for HELTEC WT
This commit is contained in:
parent
ccd23de9c4
commit
041fa27da9
|
|
@ -49,7 +49,7 @@ BluetoothSerial SerialBT;
|
|||
OneButton userButton = OneButton(BUTTON_PIN, true, true);
|
||||
#endif
|
||||
|
||||
String versionDate = "2024.04.17";
|
||||
String versionDate = "2024.04.18";
|
||||
|
||||
uint8_t myBeaconsIndex = 0;
|
||||
int myBeaconsSize = Config.beacons.size();
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@
|
|||
#ifdef TTGO_T_DECK_GPS
|
||||
#define KB_ADDR 0x55 // T-Deck internal keyboard (Keyboard Backlight On = ALT + B)
|
||||
#else
|
||||
#define KB_ADDR 0x5F // CARDKB from m5stack.com
|
||||
#define KB_ADDR 0x5F // CARDKB from m5stack.com (YEL - SDA / WTH SCL)
|
||||
#endif
|
||||
|
||||
|
||||
|
|
@ -835,7 +835,6 @@ namespace KEYBOARD_Utils {
|
|||
}
|
||||
|
||||
void setup() {
|
||||
#ifndef HELTEC_WIRELESS_TRACKER
|
||||
Wire.beginTransmission(KB_ADDR);
|
||||
if (Wire.endTransmission() == 0) {
|
||||
keyboardConnected = true;
|
||||
|
|
@ -843,7 +842,6 @@ namespace KEYBOARD_Utils {
|
|||
} else {
|
||||
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "No Keyboard Connected to I2C");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -150,6 +150,8 @@
|
|||
#define BATTERY_PIN 1
|
||||
#define ADC_CTRL 2 // active HIGH, powers the voltage divider. Only on V05 = V1.1
|
||||
#define VExt_CTRL 3 // Heltec Tracker needs this (pulled low?) for GPS and TFT
|
||||
#define BOARD_I2C_SDA 7
|
||||
#define BOARD_I2C_SCL 6
|
||||
#define RADIO_SCLK_PIN 9
|
||||
#define RADIO_MISO_PIN 11
|
||||
#define RADIO_MOSI_PIN 10
|
||||
|
|
|
|||
|
|
@ -340,6 +340,7 @@ namespace POWER_Utils {
|
|||
pinMode(ADC_CTRL, OUTPUT);
|
||||
digitalWrite(ADC_CTRL, HIGH);
|
||||
pinMode(BATTERY_PIN, INPUT);
|
||||
Wire.begin(BOARD_I2C_SDA, BOARD_I2C_SCL);
|
||||
#endif
|
||||
|
||||
#if defined(TTGO_T_DECK_GPS)
|
||||
|
|
@ -368,7 +369,7 @@ namespace POWER_Utils {
|
|||
}
|
||||
|
||||
void lowerCpuFrequency() {
|
||||
#if defined(HAS_AXP192) || defined(HAS_AXP2101) || defined(ESP32_DIY_LoRa_GPS) || defined(TTGO_T_LORA32_V2_1_GPS) || defined(TTGO_T_LORA32_V2_1_TNC) || defined(ESP32_DIY_1W_LoRa_GPS) || defined(HELTEC_V3_GPS) || defined(OE5HWN_MeshCom) || defined(ESP32_C3_DIY_LoRa_GPS)
|
||||
#if defined(HAS_AXP192) || defined(HAS_AXP2101) || defined(ESP32_DIY_LoRa_GPS) || defined(TTGO_T_LORA32_V2_1_GPS) || defined(TTGO_T_LORA32_V2_1_TNC) || defined(ESP32_DIY_1W_LoRa_GPS) || defined(HELTEC_V3_GPS) || defined(OE5HWN_MeshCom) || defined(ESP32_C3_DIY_LoRa_GPS) || defined(HELTEC_WIRELESS_TRACKER) || defined(TTGO_T_DECK_GPS)
|
||||
if (setCpuFrequencyMhz(80)) {
|
||||
logger.log(logging::LoggerLevel::LOGGER_LEVEL_INFO, "Main", "CPU frequency set to 80MHz");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue