Hey guys,
I have been banging my head on this issue for a few days now. I want to fetch data from a server, which can be in the form of a char array or a string, and use that data to show something on my (4x) 32x16 P10 LED Panel.
Now, I was testing basically how to pass data from a variable to a structure of GIMP Bitmap. I am using the SmartMatrix Library and ESP32 DevKit.
I have attached the code. Here's a quick glance at where the error is occurring:
unsigned char dataString[] =
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0*\14\12\2427-\336XG\341]"
"J\337[I\335QB\2412()\13\11\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0~\32"
"\26\3277/\334C7\353WI\354ZK\353WJ\352RG\333=2\325/)|\26\25\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\207\2\15\326\37\37\34495\345>8\345B:\346@8\346>7\346;8\344"
"56\343.1\320\25\34z\4\17\0\0\0\0\0\0\0\0\0\12!\13ee&\351\30%\343(*\341&&"
"\343\35\32\356^Y\353SG\337>\27\337=\"\336=&\337;%\317(\25)\21\3\0\0\0\0\0"
"\0*|+0\265>\264+\"\342\23\34\351?B\377\376\375\310\356\377\312\360\377\377"
"\377\376\356\3144\353\305\13\361\321\17\353\312\0\256\226\0\0\0\0\0\0\0:"
"\2449H\301K[v1\325\0\5\377\377\377R\232\327c\241\327e\242\330r\251\341\377"
"\377\376\377\322\0\375\324\5\375\323\10\353\301\0\0\0\0\0\0\0;\2439L\273"
"I@\276F\241_M\265\333\374>\203\307W\223\315W\223\316@\203\310\253\315\377"
"\377\341@\374\321\2\374\322\10\353\300\0\0\0\0\0\0\0""9\2368M\271IH\273F"
"s\255d\263\320\366&t\276;\202\305<\202\305&u\277\242\310\374\377\341@\374"
"\321\2\374\322\10\351\275\0\0\0\0\0\0\0""7\2307L\270IK\270G>\2658\377\377"
"\377\25b\252\22e\253\23e\253\20c\257\377\377\377\377\320\0\374\322\6\374"
"\322\10\344\266\3\0\0\0\0\0\0'j(=\245;L\270IG\266Bi\305a\377\377\377\247"
"\274\343\244\275\344\365\374\377\363\325-\376\321\0\375\323\10\354\300\1"
"\245\201\7\0\0\0\0\0\0\11\31\12""6\2216L\263HK\270HG\266B?\2648|\317ul\303"
"w\204\247\25\377\324\0\374\322\7\371\316\15\340\256\10)\37\3\0\0\0\0\0\0"
"\0\0\0\32L\35""5\2216K\260HK\266IJ\270GB\267FR\254:\377\322\3\377\321\12"
"\370\312\21\336\255\12{\\\14\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\30I\35""1\207"
"4;\2309H\255H7\252K\323\277\34\375\310\23\343\261\14\325\241\21xX\16\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\26\11\35Y#$|2^\207)\337\232\21\314"
"\223\26\224j\21&\33\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
static const gimp32x32bitmap chrome16 = {
16, 16, 3, dataString,};
The error that I get is:
bitmapTesting:110:25: error: invalid conversion from 'unsigned char*' to 'unsigned char' [-fpermissive]
16, 16, 3, dataString,};
^
exit status 1
invalid conversion from 'unsigned char*' to 'unsigned char' [-fpermissive]
I am not able to figure out where I'm going wrong. I was wondering if y'all could help me out.
Thanks in advance!!!
bitmapTesting.ino (9.44 KB)