[FEAT] crlf

This commit is contained in:
2021-12-13 16:14:26 +01:00
parent e5798f4b71
commit 62c513db56
3 changed files with 12 additions and 0 deletions

View File

@@ -335,6 +335,11 @@ void print(const char *str, int x, int y) {
cursor_y = (pos+len)/screen_width;
}
void crlf() {
cursor_x=0;
cursor_y = min(cursor_y+1, screen_height-1);
}
bool btn(uint8_t i) {
return keys[i];
}