trying to program a 444 led cube and this error message comes up. i don't know what is happening.
i think i attached the program.
sketch_nov23a:10: error: 'prog_uchar' does not name a type
sketch_nov23a.ino: In function 'void loop()':
sketch_nov23a:447: error: 'PatternTable' was not declared in this scope
'prog_uchar' does not name a type
the following post provides a link on how to declare variables.
Have a look at reply #4 by WillR :
There is a reference section for this idea of scoping!
It is worth the time to read and understand.
Global variables should generally be avoided.
Local variables are better.
Except for the exceptions -- but that is the advanced class.
In summary, you can either declare a global variable which any function will be able to see/use
Or you can declare the variable in the function it's being used.
Googling the error message "was not declared in this scope" should lists several entries for you to analyse and review
sketch_nov23a:10: error: expected initializer before 'PROGREM'
sketch_nov23a.ino: In function 'void loop()':
sketch_nov23a:447: error: 'PatternTable' was not declared in this scope
expected initializer before 'PROGREM'
we have seen your ORIGINAL code but haven't seen your MODIFIED code.
Would it be possible to repost your (whole) code ?
Be sure to use the code tags...
Obviously, please a complete and exact copy of the error messages that you are getting when compiling ....
This simple typo has has several people spinning their wheels.
WOULD IT BE POSSIBLE TO CORRECT YOUR CODE (after you have corrected the PROGMEM confusion) AND REPOST YOUR CURRENT CODE (including the modifications that might have been done since your first post.) ????????