GS3.cpp:104:106: error: narrowing conversion of '-1' from 'int' to 'uint8_t {aka unsigned char}' inside { } [-Wnarrowing]
static const uint8_t pin2int[23] = {-1, -1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 2, 3};
Wondering that how to edit and help the coding to read '-1' here? For me, I do not understand why '-1' is read as a '16-bit', (which refer to '-' and '1'?). How should I modify the code to read
'{-1, -1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 4, 5, 2, 3}'. Thanks