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!

/media/uploads/Pokitto/hello.jpg

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Sun Oct 07 10:20:22 2018 +0000
Parent:
16:160c0bbfb100
Commit message:
Removed all warnings from mbed online build

Changed in this revision

PokittoLib.lib Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 160c0bbfb100 -r 2bf164ef973d PokittoLib.lib
--- a/PokittoLib.lib	Tue Oct 02 20:39:45 2018 +0000
+++ b/PokittoLib.lib	Sun Oct 07 10:20:22 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/Pokitto/code/PokittoLib/#63853054a4d9
+https://os.mbed.com/users/Pokitto/code/PokittoLib/#8b6a110feeea
diff -r 160c0bbfb100 -r 2bf164ef973d main.cpp
--- a/main.cpp	Tue Oct 02 20:39:45 2018 +0000
+++ b/main.cpp	Sun Oct 07 10:20:22 2018 +0000
@@ -7,10 +7,6 @@
     while (mygame.isRunning()) {
         if (mygame.update()) {            
             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));
             } 
         }