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

Wrong return code when false address given #33

Closed alrabe closed 4 years ago

alrabe commented 4 years ago

Hi

Just started with the library. I found out: If providing a wrong I2C address, then a wrong return code will be returned. oledInit() will return a 5 (OLED_SH1107_3D), but I would expect to get OLED_NOT_FOUND.

Alex

bitbank2 commented 4 years ago

I just pushed a fix to the master branch. Please confirm and I'll do a new release.

alrabe commented 4 years ago

I confirm. Setting wrong address will return now -1. Setting the correct address or -1 works still fine.