Hi, I want to change a custom char, mid-way through a sketch. And the reason that I don't just use another char, is that I have to use all 8 chars, and I need them to change to a lot more than 8 states.
So far, I have made this:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte customChar[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b00000,
0b10101,
0b00000
};
void setup() {
lcd.createChar(0, customChar);
lcd.begin(16, 2);
}
void loop() {
lcd.write((uint8_t)0);
customChar[8] = {
0b00000,
0b00000,
0b00000,
0b00000,
0b00100,
0b00000,
0b10100,
0b00000
};
delay(3000);
}
But I get error:
C:\Users\admin\AppData\Local\Temp\arduino_modified_sketch_362623\sketch_jun26a.ino: In function 'void loop()':
sketch_jun26a:32:3: error: cannot convert '<brace-enclosed initializer list>' to 'byte {aka unsigned char}' in assignment
};
^
exit status 1
cannot convert '<brace-enclosed initializer list>' to 'byte {aka unsigned char}' in assignment
I don't know how to fix this.