pico-examples
pico-examples copied to clipboard
Refactor the oled_i2c example
This PR does a number of things:
- Renames the oled_i2c example to ssd1306_i2c to match other example folder names that use the device name
- Merge code from another ssd1306 example that was sitting in another PR
- Add a few more demo parts to the code for extra fun.
- Couple of bug fixes that were reported in original code to fix handling different display sizes, so code now works for 32 and 64 pixel height displays by changing a define at top of code.
Can someone review this please? I really like to get this merged.
Not sure where the conflicts have come from....
@kilograham @lurch Would be good to get this merged. No idea why it thinks there are merge conflicts. The two files mentioned are moved, not changed.
@kilograham Can we merge this? Been hanging around a while.
Fixed the merge conflict.
you didn't update the README.md (which has a link)
Ooh, good spot, pushed a fix.
you didn't update the README.md (which has a link)
Ooh, good spot, pushed a fix.
Yeah everyone seems to forget the README, so I always check!
Also found another PR that was based on the old OLED example, so just fixed and pushed that to the refactor as well. https://github.com/raspberrypi/pico-examples/pull/284