Forum Replies Created
-
AuthorPosts
-
rschildgeMember
It works! Thank you for your help.
rschildgeMemberI purchased your backpack board from Adafruit.
rschildgeMemberI purchased my Uno from Anafruit recently, and I don’t see anything on it that says V2. It is the R3 pictured here: https://www.arduino.cc/en/Main/ArduinoBoardUno
The code compiles now but when I upload it I get some random pixels that light up and just stay on. The other sample code from Anafruit works, so I know my hardware is working. Thanks for your help.
rschildgeMemberI had the same error. I am running the 1.6.5 IDE. I changed ‘prog_uchar’ to ‘const unsigned char’ as well in 2nd line of the .cpp files and here:
extern const unsigned char pacman_bitmaps[];
extern const unsigned char letter_bitmaps[];
extern const unsigned char invader_bitmaps[];Here is what I’m getting now as an error:
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:69: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino: In function ‘void drawPacMan(int, int)’:
MatrixDemo_v2:8: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:77:31: note: in expansion of macro ‘PACMAN_BITMAP’
MatrixDemo_v2:9: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:79:18: note: in expansion of macro ‘PACMAN_LEFT_BITMAP’
MatrixDemo_v2.ino: In function ‘void drawDeadGhost(int, int)’:
MatrixDemo_v2:98: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2:12: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:99:20: note: in expansion of macro ‘GHOST_FACE’
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2.ino: In function ‘void drawGhost(int, int, uint16_t, int)’:
MatrixDemo_v2:103: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2:11: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:105:22: note: in expansion of macro ‘GHOST_EYES’
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2:11: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:109:24: note: in expansion of macro ‘GHOST_EYES’
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2.ino: In function ‘void drawInvaders(int, int, int)’:
MatrixDemo_v2:183: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2:186: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2:189: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
MatrixDemo_v2.ino: In function ‘void pacmanGameDemo()’:
MatrixDemo_v2:13: error: invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive]
MatrixDemo_v2.ino:356:24: note: in expansion of macro ‘SCORE’
MatrixDemo_v2:51: error: initializing argument 3 of ‘uint8_t drawBitmap(int, int, unsigned char*, uint16_t)’ [-fpermissive]
invalid conversion from ‘const unsigned char*’ to ‘unsigned char*’ [-fpermissive] -
AuthorPosts