Issue with Arduino compiling for NRF5
phodgers opened this issue · comments
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.
Hello,
Thank you for reporting
Please, check commit 8a417fe. It should solve the issue for you.