meshtastic-firmware/variants/esp32s3/picomputer-s3/variant.h

66 wiersze
2.2 KiB
C
Czysty Zwykły widok Historia

2023-05-15 15:17:14 +00:00
#undef GPS_RX_PIN
#undef GPS_TX_PIN
2023-08-07 17:34:42 +00:00
#define BUTTON_PIN 0
2023-05-15 15:17:14 +00:00
2023-08-07 17:34:42 +00:00
#define PIN_BUZZER 43
2023-05-15 15:17:14 +00:00
2023-08-07 17:34:42 +00:00
#define HAS_WIRE 0
2023-05-15 15:17:14 +00:00
#define BATTERY_PIN ADC1_CHANNEL_1_GPIO_NUM // 2
// A battery voltage measurement pin, voltage divider connected here to measure battery voltage
// ratio of voltage divider = 3.0 (R11=200k, R7=100k)
#define ADC_MULTIPLIER 3.1 // 3.0 with correction of display undervoltage.
#define ADC_CHANNEL ADC1_GPIO2_CHANNEL
2023-05-15 15:17:14 +00:00
#define USE_RF95 // RFM95/SX127x
#define LORA_SCK SCK // 21
#define LORA_MISO MISO // 39
#define LORA_MOSI MOSI // 38
#define LORA_CS SS // 40
2023-05-15 15:17:14 +00:00
#define LORA_RESET RADIOLIB_NC
// per SX1276_Receive_Interrupt/utilities.h
2023-08-07 17:34:42 +00:00
#define LORA_DIO0 10
2023-05-15 15:17:14 +00:00
#define LORA_DIO1 RADIOLIB_NC
2023-08-07 17:34:42 +00:00
#define LORA_DIO2 RADIOLIB_NC
// Default SPI1 will be mapped to the display
#define ST7789_SDA 4
#define ST7789_SCK 3
#define ST7789_CS 6
#define ST7789_RS 1
#define ST7789_BL 5
#define ST7789_RESET -1
#define ST7789_MISO -1
#define ST7789_BUSY -1
#define ST7789_SPI_HOST SPI3_HOST
#define TFT_BL 5
2023-08-07 17:34:42 +00:00
#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
2023-08-08 16:51:11 +00:00
#define TFT_OFFSET_ROTATION 0
2023-08-07 17:34:42 +00:00
#define SCREEN_ROTATE
#define SCREEN_TRANSITION_FRAMERATE 5
// Picomputer gets a white on black display
2.7 fixes w2 (#7148) * 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 commit 8d05e17f11eb48c42460176317893a50abd2eeb2. * 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 commit 2e8aecd52d6f5b9058e0bde09b72ece43a5f3a48. * 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>
2025-07-03 01:50:49 +00:00
#define TFT_MESH_OVERRIDE COLOR565(255, 255, 255)
#define CANNED_MESSAGE_MODULE_ENABLE 1
2023-08-07 17:34:42 +00:00
#define INPUTBROKER_MATRIX_TYPE 1
2023-08-08 16:55:00 +00:00
#define KEYS_COLS \
{ \
44, 47, 17, 15, 13, 41 \
2023-08-07 17:34:42 +00:00
}
2023-08-08 16:55:00 +00:00
#define KEYS_ROWS \
{ \
12, 16, 42, 18, 14, 7 \
2023-08-07 17:34:42 +00:00
}