Hey there fellow programmers,
I'm trying to build a library where I need to bit-shift an integer to get all the bits into a boolean in order.
I jused this line of code to do it:
bool dataForPin = pinRowData >> i;
Where pinRowData is an unsigned integer in an array of 19 and i is an increment with the byte
datatype. However, while compiling I get the following error:
invalid operands of types 'unsigned int [19]' and 'byte {aka unsigned char}' to binary 'operator>>'
I checked out the arduino documentation and it says I can use the bit operators on bytes, integers, and longs. A google search also lead to nothing. Not for the arduino language or C++. Does anyone have an idea about where I should start looking?