Arduino ide error
Ant-on-way opened this issue · comments
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))'