Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when compiling code for Arduino Nano, 4.2in screen. #328

Open
richterlevania3 opened this issue Jan 24, 2024 · 1 comment
Open

Error when compiling code for Arduino Nano, 4.2in screen. #328

richterlevania3 opened this issue Jan 24, 2024 · 1 comment

Comments

@richterlevania3
Copy link

richterlevania3 commented Jan 24, 2024

/home/terminusest/Arduino/epd4in2_V2/epd4in2_V2.cpp:498:6: error: prototype for 'void Epd::Set_4GrayDisplay(const char*, int, int, int, int)' does not match any in class 'Epd'
 void Epd::Set_4GrayDisplay(const char *Image, int x, int y, int w, int l)
      ^~~
In file included from /home/terminusest/Arduino/epd4in2_V2/epd4in2_V2.cpp:28:0:
/home/terminusest/Arduino/epd4in2_V2/epd4in2_V2.h:67:10: error: candidate is: void Epd::Set_4GrayDisplay(const unsigned char*, int, int, int, int)
     void Set_4GrayDisplay(const unsigned char *Image, int x, int y, int w, int l);
          ^~~~~~~~~~~~~~~~
/home/terminusest/Arduino/epd4in2_V2/epd4in2_V2.cpp: In member function 'int Epd::Init_4Gray()':
/home/terminusest/Arduino/epd4in2_V2/epd4in2_V2.cpp:213:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

Using library SPI at version 1.0 in folder: /home/terminusest/.arduino15/packages/arduino/hardware/avr/1.8.6/libraries/SPI 
exit status 1

Compilation error: prototype for 'void Epd::Set_4GrayDisplay(const char*, int, int, int, int)' does not match any in class 'Epd'
@shhds
Copy link
Contributor

shhds commented Apr 23, 2024

To repair

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants