ohmtech-rdi / eurorack-blocks

Software to Hardware Prototyping for Eurorack using C++, Max/Gen~ or Faust
Other
293 stars 19 forks source link

Ssd130x offset support #633

Closed ohmtech-rdi closed 7 months ago

ohmtech-rdi commented 7 months ago

This PR adds support for OLED modules using SSD1306 or SSD1309 (which natively drives 128x64 pixels), but for which the actual pixels is only a portion of the full accessible pixels. This is done by introducing an X-offset and page offset. The X-offset implementation could probably be done better (as it might be directly supported by the controller), but this solution is good enough for now.