bitbank2 / ss_oled

Simple and small library to control 1-bpp OLED displays (Linux + Arduino)
GNU General Public License v3.0
186 stars 34 forks source link

There is no example of oledDrawSprite #49

Closed Tilation closed 3 years ago

Tilation commented 3 years ago

void oledDrawSprite(SSOLED pOLED, uint8_t pSprite, int cx, int cy, int iPitch, int x, int y, uint8_t iPriority) argument pOLED is the oled argument pSprite is the sprite what are the rest? this function's documentation doesn't describe all the arguments. How do you use this? cx is meant to be center x? is iPitch the rotation?

bitbank2 commented 3 years ago

cx = width in pixels cy = height in pixels iPitch = bytes per source line (e.g. 34 pixels wide would be 5 bytes, but it can be any value you tell it) x,y = destination coordinates Priority tells which bit 0/1 is the transparent part and which is the opaque part Please write an example if you like. This library is deprecated and OneBitDisplay is the currently supported one.