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:
Thu Oct 12 10:43:29 2017 +0000
Revision:
5:c4a0391b43ac
Parent:
0:2d2a3994d55d
Child:
15:90fbbbf47b22
Fixed my_settings

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 5:c4a0391b43ac 9 mygame.display.print("Hello World!");
Pokitto 0:2d2a3994d55d 10 }
Pokitto 0:2d2a3994d55d 11 }
Pokitto 0:2d2a3994d55d 12
Pokitto 0:2d2a3994d55d 13 }