Hello! I am working on a project with 2560 pixels running on Artnet over

@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 :wink: 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…

@Stef_Weicks let me see your code. Certainly a not too correct conversion algorithm :slight_smile:
Let me know how this project goes along :wink:

here you are https://gist.github.com/weicks/a2bf68b7ad1659ab51f75299fd84679f

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.

@Stef_Weicks hello
First in your setchar c should be an uint16_t not an uchar ‘cause when you will try to display above char 51 you could have trouble

@Stef_Weicks how did you arrange your panels you have 2 16x16 ?
Are you sure about your setpixel function ?

Oh ok interesting thanks! Yes i thought i would display it at first/test on a few panels … but didnt work very well till now

About setpixelfunktion … it was more try and error … lol

But if i will transfer this to a ESP32 I probably have to rewrite the code again

I will try you exchanges … maybe it works better than

@Stef_Weicks ok my guess is that you setpixel function is not correct

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?!

in the MatrixGFXDemo64 i uncommanded the #define P32BY64 and did
#define mw 16
#define mh 16

for length and high for test of 1 panel

#define NUM_STRIPS 1
#define NUM_LEDS_PER_STRIP 256

this would be my settings… and i think NEO_MATRIX_ZIGZAG is used…

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

@Stef_Weicks no you can set tiles too
There is an example on how to set tiles in the examples of the 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?

FastLED_NeoMatrix *matrix = new FastLED_NeoMatrix(matrixleds,mw,mh,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT +
NEO_MATRIX_ROWS + NEO_MATRIX_ZIGZAG +
NEO_TILE_TOP + NEO_TILE_LEFT + NEO_TILE_ZIGZAG);
missing/deleted image from Google+

yea … i got it :smiley:

FastLED_NeoMatrix *matrix = new FastLED_NeoMatrix(matrixleds,mw,mh,
NEO_MATRIX_TOP + NEO_MATRIX_LEFT +
NEO_MATRIX_COLUMNS + NEO_MATRIX_ZIGZAG );
missing/deleted image from Google+

Great so now to mix the two of it :slight_smile:

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

maybe anyone could help me with this?

@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);

@Stef_Weicks maybe better like this
if hour and minutes are numbers
sprintf(buff,"%2d:%2d",hour,min);

Thank you @Yves_BAZIN for all your help!

With my 1307 RTC-Modul i did this program

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 :wink:

@Stef_Weicks I will have a look at it :wink: