Compare commits
2 Commits
09a8a38509
...
572ac11d4e
Author | SHA1 | Date | |
---|---|---|---|
|
572ac11d4e | ||
|
67cfe20124 |
@ -57,6 +57,7 @@ void AllClearCommand(char *symbols, int lenght){
|
||||
Fill(255);
|
||||
update();
|
||||
}
|
||||
ClearPages();
|
||||
}
|
||||
|
||||
// command 2
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user