This is an example "Hello World" program that works with the latest Pokitto library release
Dependencies: PokittoLib
Pokitto "Hello World!" example
Press "Import into Compiler" on the top right of this page to try this code yourself!
Diff: main.cpp
- Revision:
- 15:90fbbbf47b22
- Parent:
- 5:c4a0391b43ac
- Child:
- 17:2bf164ef973d
--- a/main.cpp Sat Jul 21 12:33:50 2018 +0000 +++ b/main.cpp Fri Sep 14 07:40:54 2018 +0000 @@ -6,7 +6,11 @@ mygame.begin(); while (mygame.isRunning()) { if (mygame.update()) { - mygame.display.print("Hello World!"); + mygame.display.println("Hello World!"); + /* Below is an example of printf, the ability print formatted strings */ + /* Remove the two slashes '//' to uncomment it and see it in action */ + /* Add the // back in the beginning of the line to comment it out again */ + mygame.display.printf("\nA random\nnumber:%d",random(100)); } }