- matrixPrint(poruka.substring(p,p+(WIDTH/8)+1));
- for (int o=0; o<8; o++) {
- uint8_t *src = displaybuf_w;
- uint8_t *dest = displaybuf;
+ pos = ( pos + 1 ) % (( WIDTH / 8 )+1);
+// int pos_ch = ( pos + (WIDTH/8) ) % (( WIDTH / 8 )+1);
+ int pos_ch = ( pos + (WIDTH/8) ) % (( WIDTH / 8 )+1);
+ MatrixWriteCharacter(pos_ch,0,poruka.charAt(p));
+
+ int step_up = ((WIDTH/8)+1)-pos; // move up one line when falling off the end of circular buffer
+
+ Serial.print(pos);
+ Serial.print(" step_up=");
+ Serial.print(step_up);
+ Serial.print(" char=");
+ Serial.println(poruka.charAt(p));
+
+ for (int o=0; o<8; o++) {
+ uint8_t *src = displaybuf_w + pos;
+ uint8_t *dest = matrix.offscreen_buffer();
+