OMOTE/Platformio/platformio.ini
Matthew Colvin f1ff9ed3d2
Lay the ground work for a hardware abstraction layer (#15)
* Pull out OmoteUI into its own hpp/cpp that
only controls UI/UX
Added HardwareAbstractionInterface to allow UI to be decoupled

Add OmoteUI class/Header to visual studio solution
Bump the compiler to c++17 for std::clamp

* code format
update visual studio solution to build all versions properly

Pull pin defs into config file
use config file to allow USE_SIMULATOR checks in OmoteUI
this will allow the sim to compile in specific code within the UI

* put pin mode config into hardwarerevX class along with some other hardware things. Still lots of work to pull everything into the HAL.

Change-Id: If3cacc43d43670b0ff2233140b1cff66a4aeb48d

* pull Prefrences, IMU interrupt and sleep into the hardware class

Change-Id: I082ae086ed70306789df80eafce8870a5cdfd125

* pull in touch screen, IMU and slow screen wake into hardware

Change-Id: I61b49a6d0551463becbc3bdf1418ac9fde9d9376

* Pull wifi and IR into Hardware RevX
pull last bit of global variables into hardware rev

* un public everything

* clean up simulator build

* rename loop handler
reorder setup to better match the origional main

* Add Loop Handler that updates UI

* Add images to their own file to shrink OmoteUI

* Allow Wifi to be turned off with the macro

* Update Battery Update Task instead of a time based check and update

* Clean up abstract interface
move defenitions out of hardwareRevX.hpp into cpp

* reorder HardwareRevX functions

* Add comment blocks to top of headers

---------

Co-authored-by: Matthew Colvin <35540398+Mc067415@users.noreply.github.com>
Co-authored-by: Matthew Colvin <Matthew.Colvin@garmin.com>
2023-07-31 20:28:10 +02:00

55 lines
No EOL
1.4 KiB
INI

; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html
[env:esp32]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
board_build.f_flash = 80000000L
board_build.f_cpu = 240000000L
upload_speed = 1000000
lib_deps =
sparkfun/SparkFun LIS3DH Arduino Library@^1.0.3
crankyoldgit/IRremoteESP8266@^2.8.4
adafruit/Adafruit FT6206 Library@^1.0.6
lvgl/lvgl@^8.3.4
bodmer/TFT_eSPI@^2.5.23
knolleary/PubSubClient@^2.8
build_flags =
-std=c++17
-std=gnu++17
-D CORE_DEBUG_LEVEL=ARDUHAL_LOG_LEVEL_DEBUG
-I include
-I include/OmoteUI
; Include the folder containing lv_conf.h
; The following lines replace the TFT_eSPI User_setup.h-file
-D USER_SETUP_LOADED=1
-D ILI9341_DRIVER=1
-D TFT_WIDTH=240
-D TFT_HEIGHT=320
-D TFT_MOSI=23
-D TFT_SCLK=18
-D TFT_CS=5
-D TFT_DC=9
-D TFT_RST=-1
-D SPI_FREQUENCY=80000000
-D SPI_TOUCH_FREQUENCY=2500000
; TFT_eSPI fonts are disabled by default
;-D LOAD_GLCD=1
;-D LOAD_FONT2=1
;-D LOAD_FONT4=1
;-D LOAD_FONT6=1
;-D LOAD_FONT7=1
;-D LOAD_FONT8=1
;-D LOAD_GFXFF=1
;-D SMOOTH_FONT=1
build_unflags =
-std=gnu++11