// Внешние библиотеки
#include <LiquidCrystal_I2C.h>
#define MAP_POS 16
#define MAP_LINES 2
// Внутренние модули
#include "Scroll.h"
// Размеры поля
LiquidCrystal_I2C lcd(0x27, MAP_POS, MAP_LINES);
Scroll gameScroll(lcd);
void setup() {
Serial.begin(115200);
char str[16];
int n = 555;
sprintf(str, "Prompt: %u", n);
gameScroll.init(str);
Serial.println(str);
Serial.println(strlen(str));
for (int i = 0; i <= 15; i++) {
gameScroll.showChar();
gameScroll.nextChar();
/*
Serial.print(i);
Serial.print("\t");
Serial.print(str[i]);
Serial.print("\t");
Serial.print((int) str[i]);
Serial.println("");
*/
}
}
void loop() {
// put your main code here, to run repeatedly:
}