lexus2k / ssd1306

Driver for SSD1306, SSD1331, SSD1351, IL9163, ILI9341, ST7735, PCD8544, Nokia 5110 displays running on Arduino/ESP32/Linux (Rasperry) platforms
MIT License
657 stars 125 forks source link

Issue with Arduino compiling for NRF5 #62

Closed phodgers closed 5 years ago

phodgers commented 5 years ago

Please provide the following information:

library version

master branch 1.7.13 unofficial

LCD display type

OLED 128x32

Steps to reproduce the issue

Open Arduino 1.8.7 (Windows 10), load File>Examples>ssd1306>demos>ssd1306_demo.ino select NRF5 board (used Sandeep Mistry repo with nRF5 DK) and try to compile....

I get the following output... C:\Users\Philip\Documents\Arduino\libraries\ssd1306\src\ssd1306_hal\arduino\platform.cpp: In function 'void ssd1306_i2cSendByte_Wire(uint8_t)':

C:\Users\Philip\Documents\Arduino\libraries\ssd1306\src\ssd1306_hal\arduino\platform.cpp:71:28: error: 'USI_BUF_SIZE' was not declared in this scope

 if (s_bytesWritten >= (USI_BUF_SIZE -2))

                        ^

exit status 1 Error compiling for board Nordic Semiconductor nRF52 DK.

I saw same behaviour with other NRF5 boards selected in Arduino.

lexus2k commented 5 years ago

Hello,

Thank you for reporting Please, check commit 8a417fe. It should solve the issue for you.

phodgers commented 5 years ago

Thanks, it is working now. 128x32