Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 612 Bytes

UPGRADE-4.0.md

File metadata and controls

27 lines (18 loc) · 612 Bytes

Upgrade from 3.x to 4.0

There are changes that breaks compatibility with older versions.

  1. You'll have to change data type for all your binary resources such as images and fonts from

    const char MySymbol[] PROGMEM = {

    to

    const uint8_t MySymbol[] PROGMEM = {
  2. Arguments of setContrast from char to uint8_t

    void OLEDDisplay::setContrast(char contrast, char precharge, char comdetect);

    to

    void OLEDDisplay::setContrast(uint8_t contrast, uint8_t precharge, uint8_t comdetect);