-
Notifications
You must be signed in to change notification settings - Fork 100
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
Stock Api & styling updates #77
Conversation
Merge Main -> Dev
With this method the widgets can be identified and during startup we can now display which widget is loading (and potentially see which one is taking a long time or crashing or...)
Spelling (didget -> digit), also Widgets now have a getName() method
Cleanup of comment capitalization and typos
Pushing this to both dev and main(not norm to push right to main, but need to do this as a one-off as the previous stock API has stopped working). API now supports global markets, crypto, and forex. See default examples for how to use these. A small thing to be fixed: the current default font does not support the euro or pound symbol for when showing non-NA stocks, so i just use "EUR/GBP" as a placeholder. Once we adress fonts this will be an easy thing to swap out. Also removed some unused wokwi/display driver code in main now that we're all on the same hardware Code is poorly commented & formated,. sorry lol
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.
Generally looks good but the styling changes should be a separate PR
float m_currentPrice = 0.0; | ||
float m_volume = 0.0; | ||
float m_HP = 0.0; | ||
float m_LP = 0.0; |
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.
maybe m_highPrice and m_lowPrice?
|
||
|
||
|
||
display.fillRect(0,70, screenWidth, 49, TFT_WHITE); // rgb565 colors |
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.
extra whitespace should be removed and the formatting on the comment is off
Fixing bad formatting & varible naming. Moved currency symbol logic to the datamodel
Pushing this to both dev and main(not norm to push right to main, but need to do this as a one-off as the previous stock API has stopped working). The main push also has some small changes brought over from dev as well such as some comment capitalization fixes.
API now supports global markets, crypto, and forex. See default examples for how to use these.
A small thing to be fixed: the current default font does not support the euro or pound symbol for when showing non-NA stocks, so i just use "EUR/GBP" as a placeholder. Once we address fonts this will be an easy thing to swap out.
Also removed some unused wokwi/display driver code in main now that we're all on the same hardware
Code is poorly commented & formatted,. sorry lol