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

Committer:
Pokitto
Date:
Sun Oct 07 10:20:22 2018 +0000
Revision:
17:2bf164ef973d
Parent:
15:90fbbbf47b22
Removed all warnings from mbed online build

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Pokitto 0:2d2a3994d55d 1 #include "Pokitto.h"
Pokitto 0:2d2a3994d55d 2
Pokitto 0:2d2a3994d55d 3 Pokitto::Core mygame;
Pokitto 0:2d2a3994d55d 4
Pokitto 0:2d2a3994d55d 5 int main () {
Pokitto 0:2d2a3994d55d 6 mygame.begin();
Pokitto 0:2d2a3994d55d 7 while (mygame.isRunning()) {
Pokitto 0:2d2a3994d55d 8 if (mygame.update()) {
Pokitto 15:90fbbbf47b22 9 mygame.display.println("Hello World!");
Pokitto 0:2d2a3994d55d 10 }
Pokitto 0:2d2a3994d55d 11 }
Pokitto 0:2d2a3994d55d 12
Pokitto 0:2d2a3994d55d 13 }