Commit graph

21 commits

Author SHA1 Message Date
MatthewColvin
40052d31b7 add base classes for screens and widgets
along with screen manager to allow place to manage multiple screens
2023-09-16 13:07:14 -05:00
MatthewColvin
5c6008c491 Add UI abstract and move some files into a basic folder 2023-09-16 12:45:12 -05:00
MatthewColvin
32c4230071 add poller to core folder 2023-09-16 12:31:18 -05:00
Matthew Colvin
4a1eb8abfa Added ability for sim to simulate brightness and battery along with displaying it via the title. 2023-09-09 21:47:36 -04:00
Matthew Colvin
628ae37b9d add fake battery Drain to simulator
Fake drain of a period of 3 minuets
2023-09-09 21:47:04 -04:00
Matthew Colvin
92c559df5e rework battery Interface and downstream usages of battery 2023-09-09 21:47:04 -04:00
Thomas Bittner
43a930d7a8 Updated simulator to support new wifi selection UI 2023-09-09 21:47:04 -04:00
Matthew Colvin
509d71cdaa rename HardwareInterfaces folder to hardwaremodules
since it now contains an abstract
2023-09-09 21:47:04 -04:00
Matthew Colvin
ddccfa141d Rename DisplayInterface file to DisplayAbstract 2023-09-09 21:47:04 -04:00
Matthew Colvin
5731148bf6 Turn Display Interface into a singleton Abstract class that can do the registration of callbacks to LVGL and allow implementers of the abstract to support LVGL. 2023-09-09 21:47:04 -04:00
Matthew Colvin
a771c64c71 rename interface folder to HardwareInterfaces
rename HardwareInterface file to hardware
abstract.

update ini to reflect new file structure
2023-09-09 21:44:47 -04:00
Matthew Colvin
cd603a2a83 Update Battery Interface by adding it to hardwareInterface
Remove Display out of some classes and leave comments to replace for callbacks
I dont know about the function of this code but it compiles :)
2023-09-09 21:44:47 -04:00
Max
b31f7e04bd Fixed screen height
- corrected the SCREEN_HEIGHT
- small graphical changes in OmoteUI to make it look like in the main branch
2023-09-09 21:44:47 -04:00
Matthew Colvin
64c61425da Fix ESP32 Windows build after battling escape characters.
Add esp32 Windows target to Actions.
2023-09-09 21:44:47 -04:00
Matthew Colvin
bcfda0641c clean up build defines by using platform.ini to override default lv_config.
remove unneeded include directory.

Change-Id: Id63baa80dae89977d239a539b5db9ff67266e1d6
2023-09-09 21:44:46 -04:00
Matthew Colvin
d2051daf8b ensure all targets build
remove unused assets.c
add new github actions that reflect new simulator
2023-09-09 21:44:46 -04:00
Matthew Colvin
834780ce83 lvgl simulator working. 2023-09-09 21:44:46 -04:00
Matthew Colvin
5b1228b167 Re work directory structure to support new architecture
Still need to get the Sim building
2023-09-09 21:44:46 -04:00
Max
73fe6f2ebb Lower default SPI Clock
Lowered the default SPI clock as some displays might show glitches with the SPI frequency set above 40MHz.
2023-09-09 21:44:46 -04:00
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
Max
00145ed0dc Initial Upload 2023-06-28 20:26:56 +02:00