So I have a byte-array representing the display attached to my Arduino:
byte theDisplay[8] = {
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B00000000,
B00000000
};
Now I want to flip a single bit at an arbitrary position:
theDisplay[3][6] = 1;
This (probably) faulty method produces these errors:
In function 'void setup()':
sketch_sep14c:13:18: error: invalid types 'byte {aka unsigned char}[int]' for array subscript
theDisplay[3][6] = 1;
^
exit status 1
invalid types 'byte {aka unsigned char}[int]' for array subscript
Is there an easy way to flip a single bit working with indexes like shown above?