[ADD] timer, but I don't think it works yet

This commit is contained in:
Sem van der Hoeven
2021-03-18 20:11:44 +01:00
parent 7a3180019e
commit 9f96c762fc
4 changed files with 1410 additions and 197 deletions

View File

@@ -126,8 +126,8 @@ void lcd_move_right(void){
void lcd_write_int(int number)
{
int length = snprintf(NULL, 0, "%d", number + 1);
int length = snprintf(NULL, 0, "%d", number);
char str[length + 1];
snprintf(str, length + 1, "%d", number + 1);
snprintf(str, length + 1, "%d", number);
lcd_write_string(str);
}