sparkfun / SparkFun_SSD1320_OLED_Arduino_Library

Display graphics and text on a flexible grayscale display
10 stars 5 forks source link

Set Width and Height Parameters #4

Closed xsk8rat closed 6 years ago

xsk8rat commented 6 years ago

Small change to prevent compile time errors. These two functions (setDisplayHeight and setDisplayWidth) were declared as void, but were returning values instead of setting them. Typos really.

New versions:

void SSD1320::setDisplayWidth(uint16_t W) { _displayWidth = W; }

void SSD1320::setDisplayHeight(uint16_t H) { _displayHeight = H; }

nseidle commented 6 years ago

You rock. Thank you for the PR! It makes my life much easier.