You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Very useful library you've provided here, Thanks a lot.
Code example : Countdown
The code compiles without any problem with Arduino Uno, But when it comes with ESP8266 i've got an error message :
C:\Users\Hamza\Documents\Arduino\libraries\ShiftDisplay\src\ShiftDisplay.cpp: In member function 'void ShiftDisplay::setAt(int, const byte*)':
C:\Users\Hamza\Documents\Arduino\libraries\ShiftDisplay\src\ShiftDisplay.cpp:353:61: error: invalid conversion from 'const byte* {aka const unsigned char*}' to 'byte* {aka unsigned char*}' [-fpermissive]
modifyBuffer(_sectionBegins[section], sectionSize, customs);
^
C:\Users\Hamza\Documents\Arduino\libraries\ShiftDisplay\src\ShiftDisplay.cpp:107:6: error: initializing argument 3 of 'void ShiftDisplay::modifyBuffer(int, int, byte*)' [-fpermissive]
void ShiftDisplay::modifyBuffer(int beginIndex, int size, byte codes[]) {
^
My ESP core version is 2.4.2 .
The solution i've tried (and thus succeeded) is to cast the parameter in the call to byte* as :
It's now compiles and runs without errors.
The text was updated successfully, but these errors were encountered:
Hi guys
Very useful library you've provided here, Thanks a lot.
Code example : Countdown
The code compiles without any problem with Arduino Uno, But when it comes with ESP8266 i've got an error message :
My ESP core version is 2.4.2 .
The solution i've tried (and thus succeeded) is to cast the parameter in the call to byte* as :
![image](https://user-images.githubusercontent.com/32960423/51742883-08772300-20ac-11e9-95c2-09dc9a5bc662.png)
It's now compiles and runs without errors.
The text was updated successfully, but these errors were encountered: