mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-02 11:55:56 +00:00

* Initial work on splitting notification renderer into components for reuse * More progress * Fix notification popup * more fix, less crash * Adjustments for OLED on keeping menus tidy, added Bluetooth Toggle to Home frame. Also widen the frame slightly if you have a scroll bar * Small changes for EInk to not crowd elements * Change System frame menu over to better match actions; added color picker for T114 * Fix build errors and add T190 for testing * Logic gates are hard sometimes * Screen Color Picker changes, defined Yellow as a Color. * Additional colors and tuning * Abandon std::sort in NodeDB, and associated fixes (#7175) * Generate short name for nodes that don't have user yet * Add reboot menu * Sort fixes * noop sort option to avoid infinite loop * Refactor Overlay Banner * Continuing work on Color Picker * Add BaseUI menus to add and remove Favorited Nodes * Create TFT_MESH_OVERRIDE for variants.h and defined colors * Trigger a NodeStatus update at the end of setup() to get fresh data on display at boot. * T114 defaults to White, Yellow is now bright Yellow * Revert "T114 defaults to White, Yellow is now bright Yellow" This reverts commit8d05e17f11
. * Only show OEM text if not OLED * Adjust OEM logo to maximize visible area * Start plumbing in Color Picker changes * Finished plumbing * Fix warning * Revert "Fix warning" This reverts commit2e8aecd52d
. * Fix display not fully redrawing * T-Deck should get color too * Emote Revamp * Update emotes.cpp * Poo Emote fix * Trunk fix * Add secret test menu and number picker * Missed bits * Save colors between reboots * Save Clock Face election to protobuf * Make reboot first, then settings * Add padding for single line pop-ups * Compass saving and faster menus * Resolve build issue with Excluding GPS * Resolve issue with memory bars on EInk * Add brightness settings for supported screen (#7182) * Add brightness menu. * add loop destination selection. * Bring back color (and sanity) to the menus! * Trunk --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com> Co-authored-by: Jason P <applewiz@mac.com> Co-authored-by: HarukiToreda <116696711+HarukiToreda@users.noreply.github.com> Co-authored-by: Wilson <m.tools@qq.com>
116 lines
3.6 KiB
C
116 lines
3.6 KiB
C
#define LED_PIN 18
|
|
|
|
#define HELTEC_TRACKER_V1_X
|
|
|
|
// TRACKSENGER 2.8" IPS 320x240
|
|
|
|
// I2C
|
|
// #define I2C_SDA 42
|
|
// #define I2C_SCL 41
|
|
// #define HAS_SCREEN 1
|
|
// #define USE_SSD1306
|
|
|
|
// Default SPI1 will be mapped to the display
|
|
#define ST7789_SDA 42
|
|
#define ST7789_SCK 41
|
|
#define ST7789_CS 38
|
|
#define ST7789_RS 40
|
|
#define ST7789_BL 21
|
|
// P#define TFT_BL 21 /* V1.1 PCB marking */
|
|
|
|
#define ST7789_RESET -1
|
|
#define ST7789_MISO -1
|
|
#define ST7789_BUSY -1
|
|
#define ST7789_SPI_HOST SPI3_HOST
|
|
#define TFT_BL 21
|
|
#define SPI_FREQUENCY 40000000
|
|
#define SPI_READ_FREQUENCY 16000000
|
|
#define TFT_HEIGHT 320
|
|
#define TFT_WIDTH 240
|
|
#define TFT_OFFSET_X 0
|
|
#define TFT_OFFSET_Y 0
|
|
#define TFT_OFFSET_ROTATION 0
|
|
#define SCREEN_ROTATE
|
|
|
|
// ST7735S TFT LCD
|
|
// #define ST7735S 1 // there are different (sub-)versions of ST7735
|
|
// #define ST7735_CS 38
|
|
// #define ST7735_RS 40 // DC
|
|
// #define ST7735_SDA 42 // MOSI
|
|
// #define ST7735_SCK 41
|
|
// #define ST7735_RESET 39
|
|
// #define ST7735_MISO -1
|
|
// #define ST7735_BUSY -1
|
|
#define TFT_BL 21 /* V1.1 PCB marking */
|
|
// #define ST7735_SPI_HOST SPI3_HOST
|
|
// #define SPI_FREQUENCY 40000000
|
|
// #define SPI_READ_FREQUENCY 16000000
|
|
// #define SCREEN_ROTATE
|
|
// #define TFT_HEIGHT DISPLAY_WIDTH
|
|
// #define TFT_WIDTH DISPLAY_HEIGHT
|
|
// #define TFT_OFFSET_X 26
|
|
// #define TFT_OFFSET_Y -1
|
|
#define SCREEN_TRANSITION_FRAMERATE 3 // fps
|
|
// #define DISPLAY_FORCE_SMALL_FONTS
|
|
|
|
#define VEXT_ENABLE 3 // active HIGH, powers the lora antenna boost
|
|
#define VEXT_ON_VALUE HIGH
|
|
#define BUTTON_PIN 0
|
|
|
|
#define BATTERY_PIN 1 // A battery voltage measurement pin, voltage divider connected here to measure battery voltage
|
|
#define ADC_CHANNEL ADC1_GPIO1_CHANNEL
|
|
#define ADC_ATTENUATION ADC_ATTEN_DB_2_5 // lower dB for high resistance voltage divider
|
|
#define ADC_MULTIPLIER 4.9
|
|
#define ADC_CTRL 2 // active HIGH, powers the voltage divider. Only on 1.1
|
|
#define ADC_CTRL_ENABLED HIGH
|
|
|
|
#undef GPS_RX_PIN
|
|
#undef GPS_TX_PIN
|
|
#define GPS_RX_PIN 33
|
|
#define GPS_TX_PIN 34
|
|
#define PIN_GPS_RESET 35
|
|
#define PIN_GPS_PPS 36
|
|
|
|
#define GPS_RESET_MODE LOW
|
|
#define GPS_UC6580
|
|
#define GPS_BAUDRATE 115200
|
|
|
|
#define USE_SX1262
|
|
#define LORA_DIO0 -1 // a No connect on the SX1262 module
|
|
#define LORA_RESET 12
|
|
#define LORA_DIO1 14 // SX1262 IRQ
|
|
#define LORA_DIO2 13 // SX1262 BUSY
|
|
#define LORA_DIO3 // Not connected on PCB, but internally on the TTGO SX1262, if DIO3 is high the TXCO is enabled
|
|
|
|
#define LORA_SCK 9
|
|
#define LORA_MISO 11
|
|
#define LORA_MOSI 10
|
|
#define LORA_CS 8
|
|
|
|
#define SX126X_CS LORA_CS
|
|
#define SX126X_DIO1 LORA_DIO1
|
|
#define SX126X_BUSY LORA_DIO2
|
|
#define SX126X_RESET LORA_RESET
|
|
|
|
#define SX126X_DIO2_AS_RF_SWITCH
|
|
#define SX126X_DIO3_TCXO_VOLTAGE 1.8
|
|
|
|
// Picomputer gets a white on black display
|
|
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
|
|
|
|
// keyboard changes
|
|
|
|
#define PIN_BUZZER 43
|
|
#define CANNED_MESSAGE_MODULE_ENABLE 1
|
|
|
|
#define INPUTBROKER_MATRIX_TYPE 1
|
|
|
|
#define KEYS_COLS \
|
|
{ \
|
|
44, 45, 46, 4, 5, 6 \
|
|
}
|
|
#define KEYS_ROWS \
|
|
{ \
|
|
26, 37, 17, 16, 15, 7 \
|
|
}
|
|
// #end keyboard
|