dekuNukem / duckyPad

Do-It-All Mechanical Macropad
MIT License
1.2k stars 168 forks source link

Ability to rotate. #91

Open sirherrbatka opened 2 years ago

sirherrbatka commented 2 years ago

So, I was thinking, it would be cool if duckypad could be flipped upside down. This would entail setting option to change how display works. Would that be easy to do?

jose1711 commented 1 year ago

I don't see a direct support for rotation in SSD1306's datasheet but it's still possible to implement by e. g. translating the coordinates (example: https://github.com/adafruit/Adafruit_SSD1306/blob/ca3a261c95486ff20d654489f3a3641e1c847eac/Adafruit_SSD1306.cpp#L954)

jose1711 commented 1 year ago

In case you'd still be interested: https://github.com/jose1711/duckyPad/commit/cfb3e9050860d7e7a818fbd0b1bd00874275660f