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

i2c display support #5

Closed
borb opened this issue Apr 17, 2022 · 1 comment
Closed

i2c display support #5

borb opened this issue Apr 17, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@borb
Copy link
Owner

borb commented Apr 17, 2022

Add i2c display support. This will allow the user to:

  • track device connection status
  • see operation status
  • debug/diagnose without serial at a glance
  • access config menu (when added)

Current target is 128x64 SSD1306 display. Initial tests with some library code have proved unreliable, as the font was small but switching to a larger font caused rendering issues. Suggest porting the code from flashfloppy's stm32 target to the rp2040 i2c layer.

@borb borb added the enhancement New feature or request label Apr 17, 2022
borb added a commit that referenced this issue Oct 13, 2022
uses ugui for display writing. need to write isr-driven queue for i2c
transactions.

gh issue #5
borb added a commit that referenced this issue Oct 31, 2022
* add indicator led position; use pico default (since we use that)

* remove older ssd1306 things; prepping for dma code

* update with cmake stub from latest pico-sdk

* wip dma-driven i2c display; note: blocks for 100ms between ops!

uses ugui for display writing. need to write isr-driven queue for i2c
transactions.

gh issue #5

* wip isr driven linked list (not quite working)

* fix linked list, turn off malloc mutex, tidy

* these @todos are redundant now

* sample text whilst i work on positioning

* use 5x12 pixel font positioned in a 5x16 area, y+2 offset

* crlf -> lf

* enable all warnings, warnings are errors

* unused variable

* if ug_wingetarea fails, a.xs/ys will be used uninited

* comment unused code (think it can be removed)

* dbg counters case for unknown devices

* change compile options to definitions for portability

* fix mismatching indentation on enum

* clang-format these files to match rest of src

* c style reformatting hints

* stub of check for device presence

* repoint display write to a noop when not available
@borb
Copy link
Owner Author

borb commented Oct 31, 2022

Completed.

@borb borb closed this as completed Oct 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant