7a9ee138db
* Lower default SPI Clock Lowered the default SPI clock as some displays might show glitches with the SPI frequency set above 40MHz. * Added missing library components Added the missing library symbols, footprints and 3D-models. These are all in a project-specific library called "omoteLib" (#19) * Implement MQTT publish in HardwareRevX Change-Id: I7b6955a662716f83dd8daf34128a353efa26bf80 * add batteryStatus info and allow access to it through the interface. Change-Id: Ieb748b1478d532f52ffff9edc783de3cbcf9f303 * rename hardwareAbstractionInterface Change-Id: I39a9bcd7fc4d92b271a40a869faae7870d6d88a1 * rename HardwareAbstractionInterface files Change-Id: Ifb6a96c38da61cb80aabc6c929e392a2fc91cf29 * fixed a typo * Re work directory structure to support new architecture Still need to get the Sim building * lvgl simulator working. * put init code into HardwareSimulator Class * ensure all targets build remove unused assets.c add new github actions that reflect new simulator * clean up build defines by using platform.ini to override default lv_config. remove unneeded include directory. Change-Id: Id63baa80dae89977d239a539b5db9ff67266e1d6 * Fix ESP32 Windows build after battling escape characters. Add esp32 Windows target to Actions. * Fixed screen height - corrected the SCREEN_HEIGHT - small graphical changes in OmoteUI to make it look like in the main branch --------- Co-authored-by: Max <Max-MKA@web.de> Co-authored-by: Matthew Colvin <Matthew.Colvin@garmin.com> Co-authored-by: Matthew Colvin <35540398+Mc067415@users.noreply.github.com>
52 lines
No EOL
1.2 KiB
C
52 lines
No EOL
1.2 KiB
C
#pragma once
|
|
|
|
#define IS_SIMULATOR false
|
|
|
|
// Comment out to disable connected features
|
|
#define ENABLE_WIFI
|
|
#define WIFI_SSID "YOUR_WIFI_SSID"
|
|
#define WIFI_PASSWORD "YOUR_WIFI_PASSWORD"
|
|
#define MQTT_SERVER "YOUR_MQTT_SERVER_IP"
|
|
|
|
// time until device enters sleep mode in milliseconds
|
|
#define SLEEP_TIMEOUT 20000
|
|
|
|
// motion above threshold keeps device awake
|
|
#define MOTION_THRESHOLD 50
|
|
|
|
// IO34+IO35+IO37+IO38+IO39(+IO13)
|
|
#define BUTTON_PIN_BITMASK 0b1110110000000000000000000010000000000000
|
|
|
|
// Pin assignment
|
|
// -----------------------------------------------------------------------------------------------------------------------
|
|
|
|
#define LCD_DC 9 // defined in TFT_eSPI User_Setup.h
|
|
#define LCD_CS 5
|
|
#define LCD_MOSI 23
|
|
#define LCD_SCK 18
|
|
#define LCD_BL 4
|
|
#define LCD_EN 10
|
|
|
|
#define USER_LED 2
|
|
|
|
#define SW_1 32 // 1...5: Output
|
|
#define SW_2 26
|
|
#define SW_3 27
|
|
#define SW_4 14
|
|
#define SW_5 12
|
|
#define SW_A 37 // A...E: Input
|
|
#define SW_B 38
|
|
#define SW_C 39
|
|
#define SW_D 34
|
|
#define SW_E 35
|
|
|
|
#define IR_RX 15 // IR receiver input
|
|
#define ADC_BAT 36 // Battery voltage sense input (1/2 divider)
|
|
#define IR_VCC 25 // IR receiver power
|
|
#define IR_LED 33 // IR LED output
|
|
|
|
#define SCL 22
|
|
#define SDA 19
|
|
#define ACC_INT 20
|
|
|
|
#define CRG_STAT 21 // battery charger feedback
|