Skip to content
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

Badger 2040w C++ Library #903

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Conversation

kennedn
Copy link

@kennedn kennedn commented Feb 19, 2024

Hello,

I noticed that there was no badger2040w C++ library under libraries/ despite all the required drivers existing in the code base.

I have taken it upon myself to port the badger2040 library code over to the badger2040w and ported all the respective examples too plus added a couple of additional ones:

Name Description
examples/badger2040w/badger2040w_icon.cpp Uses an iconsheet to create a tiling effect
examples/badger2040w/badger2040w_rtc.cpp Retrieve internet time from NTP and cache the time on the pcf85063a external RTC

I have refactored the badger2040w library port to make use of the picographics library since the old method appears to be depreciated.

- Allow direct access to graphics and display driver
- Run init function before initialising graphics and display drivers
- Add icon functionality to badger2040w library
- Add external RTC functionality to badger2040w library
- Port badger2040 examples and add new icon and rtc examples
- Disable blocking mode in driver
- Remove usage of sleep_ms function to allow screen updates from IRQ
context
@Gadgetoid
Copy link
Member

Sorry for the complete and total silence here- a Herculean effort like this deserves at least a "thanks, this is awesome and I promise to look over it ASAP!"

So- yes- thanks, this is awesome and I promise to look over it ASAP!

@thirdr perhaps this is something you'd like to tinker with?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants