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

Arduino ide error #30

Open
Ant-on-way opened this issue May 3, 2023 · 0 comments
Open

Arduino ide error #30

Ant-on-way opened this issue May 3, 2023 · 0 comments

Comments

@Ant-on-way
Copy link

In file included from C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:9:0:
C:\Users\User\OneDrive\Desktop\glasses arduino\bitmap.h:1269:43: error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'
PROGMEM const unsigned char* bitmap_array[] = {
^
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino: In function 'void setup()':
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:141:11: error: 'buttonPin' was not declared in this scope
pinMode(buttonPin, INPUT); // Defines button pin
^~~~~~~~~
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino: In function 'void loop()':
C:\Users\User\OneDrive\Desktop\glasses arduino\glasses arduino.ino:164:18: error: 'buttonPin' was not declared in this scope
if(digitalRead(buttonPin) == LOW) isClicked = LOW;
^~~~~~~~~

exit status 1

Compilation error: variable 'bitmap_array' must be const in order to be put into read-only section by means of 'attribute((progmem))'

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

1 participant