added the f!() macro to the library to make shure that all random text can be written to the progmem to save the important ram

This commit is contained in:
Zenn 2023-08-07 20:40:06 +02:00
parent b00ee76ef1
commit 990ae0c03c
11 changed files with 71 additions and 97 deletions

View file

@ -43,7 +43,7 @@ pub unsafe extern "C" fn loop_() {
//Move the cursor to the position 30, 30 of the screen
arduboy.set_cursor(30, 30);
//Printing the yay (important always put the \0 at the end for &str)
arduboy.print("Yay!\0");
arduboy.print(f!(b"Yay!\0"));
}
//Move the cursor back to the top-left of the screen
arduboy.set_cursor(0, 0);