@Yves_BAZIN It works really good with this modification.But I didn´t test it the last 2 days.
Yes a backup, why didnt I think this about this i will try it as soon as possible!
i found a code in the web about a pixel-clock. i rewrote the program to work on a 8x8 matrix with my 8266 and then i tried it on my 16x16 matrix but i didn´t get the numbers in the right position. there was always an offset of 1 pixel between the lines …hm
thankx for the librarys … will give them a try … i have seen there are some ascii fonts out there which i could fit on the panel…
with this lines i can adjust the pixels in the panel-field:
setChar(1,4, char0, hrColour);//Hour tens
setChar(6,4, char1, hrColour);//Hour units
setChar(10,4, ‘:’, secColour);//colon
setChar(14,4, char2, minColour);//Min tens
setChar(19,4, char3, minColour);//Min units
but my numbers look like they are brocken in the middle.
indeed the setpixel function will be the problem… but i don´t know what the problem would be here … the clock would be easy done if i can display the numbers in the right way…i also tried the MatrixGFXDemo64 … where i also get a problem with displaying the pixels correct … i think i didnt understand something in the right way?!
the problem for me is, that these codes are more written for lightstrips which are positioned side by side … and are not connected in a snake, rather in a line by line e.g always connected to the left side of the display … i looked at https://learn.adafruit.com/adafruit-neopixel-uberguide/neomatrix-library
now I’ve finally done it … thank you for the tip … i did the tiletest example…
the font runs but strangely mirrored. do you know something to turn the font in the right direction?
hm … i tried it with the example i uploaded yesterday (Matric-clock) … but i didn´t finde the operator which can sign the numbers… e.g.
matrix->print((char0,char1,":",char2,char3)); doesn´t really work and i didnt find a discription of it …
with matrix->print i can write on the pixelwall so i thought it would be possible to sign the numbers of the clock with this line
@Stef_Weicks what do you mean sign the number ?
do somthing like this
char buff[5];
sprintf(buff,"%s%s:%s%s",char0,char1,char2,char3);
matrix->print (buff);
the program works … but i always get this message:
Stack smashing protect failure!
abort() was called at PC 0x400d8140 on core 1
i searched the web and heard this could be a buffer overflow…
i don´t know why this happens … i tried different lines in displaying … because without displaying (printing) the time, it works without this failure…
I do not know if this error is serious or should i just leave it … the clock works the same way