Compare commits

..

2 Commits

3 changed files with 8 additions and 0 deletions

View File

@ -57,6 +57,7 @@ void AllClearCommand(char *symbols, int lenght){
Fill(255);
update();
}
ClearPages();
}
// command 2

View File

@ -71,6 +71,7 @@ void Fill(uint8_t fill);
void update();
void DrawChar(uint8_t x, uint8_t y, uint8_t charIndex, uint8_t fill);
void ClearPages();
void AddSymbol(uint8_t symbol);
void DelSymbol();
void SetPage(uint8_t p);

View File

@ -292,6 +292,12 @@ void SetPage(uint8_t p){
if (p > 8) page = 8;
}
void ClearPages(){
for (uint8_t row = 0; row < 8; row++) {
amountByteInPage[row] = 0;
}
}
void AddSymbol(uint8_t symbol){
if (amountByteInPage[page] + 5 < 128){
DrawChar(amountByteInPage[page],page*8,symbol,1);