-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WiFi Over the air update #21
Conversation
3a35761
to
6e75b74
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like the awesomeness of PlatformIO unfortunately leads to breaking when building with Arduino. Ideally we'd maintain compatibility on both, since folks may generally be more likely to use Arduino.
@@ -20,6 +20,14 @@ board_build.partitions = default_8MB.csv | |||
|
|||
lib_extra_dirs = src/libraries | |||
|
|||
lib_deps = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just starting to test out the OTA functionality! Noticed new libraries required; would be great to include these in the readme file for Arduino users as well
https://github.com/scottyob/leaf/tree/ota/src/vario#required-libraries
src/vario/PageQR.cpp
Outdated
#include "PageQR.h" | ||
|
||
#include "display.h" | ||
#include "qrcode.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This include doesn't seem to work when building in Arduino. ("QRCode was not declared in this scope")
Quick research suggests it may be because of a conflict with built in ESP32 board package (also has a qrcode.h). See here:
ricmoo/QRCode#31
Suggestions on best way to handle?
…k of modal page drawing
Not required for PlatformIO, but this adds support for Arduino IDE builds once the etlcpp library has been added. Test Plan (using Arduino IDE): ``` Sketch uses 612976 bytes (46%) of program storage space. Maximum is 1310720 bytes. Global variables use 91304 bytes (27%) of dynamic memory, leaving 236376 bytes for local variables. Maximum is 327680 bytes. ```
Added a build flag to PlatformIO to know when we're building with that. Added a new library to the Arduino github action so it can check out that library.. I still maintain that keeping this working in two build environments is making this project harder to maintain already :\
QR Code library was not building with Arduino. Followed the recommended approach to copy/paste it in and rename it. It appears to be MIT license, so I think this is good.
* BugFix that may cause exception faults on two pages sharing no sub-menus * Added WiFi Manager to be able to configure WiFi without the needed for an app under "Manual" mode.
Test Plan:
IMG_2765.1.mp4