Hello,
First, look to my username... Then help me. Thats the problem, I am trying to program Led matrix to get graphics, but unfortunetely I am getting this error. So here's my sketch and error so please,
could you recommend me what libraries should I include, or is there another serious problem ?
The main code:
#include <Arduino.h>
byte* CharToBytes(char str)
{
byte* r= specialchars1[0];
if(str>=65&&str<=90)
{
r=alphabet[(str-65)];
}
if(str>=97&&str<=122)
{
r=lower[(str-97)];
}
if(str>=48&&str<=57)
{
r=numbers[(str-48)];
}
if(str>=32&&str<=47)
{
r=specialchars1[(str-32)];
}
if(str>=58&&str<=64)
{
r=specialchars2[(str-58)];
}
return r;
}
Error...
Graphics.cpp: In function 'byte* CharToBytes(char)':
Graphics.cpp:7:28: error: invalid types 'int[int]' for array subscript
byte* r= specialchars1[0];
^
Graphics.cpp:10:7: error: 'alphabet' was not declared in this scope
r=alphabet[(str-65)];
^
Graphics.cpp:14:7: error: 'lower' was not declared in this scope
r=lower[(str-97)];
^
Graphics.cpp:18:7: error: 'numbers' was not declared in this scope
r=numbers[(str-48)];
^
Graphics.cpp:22:29: error: invalid types 'int[int]' for array subscript
r=specialchars1[(str-32)];
^
Graphics.cpp:26:7: error: 'specialchars2' was not declared in this scope
r=specialchars2[(str-58)];
Thank you for your wasted time.