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:
Tue May 19 07:31:19 2020 +0000
Revision:
18:f98cbe1dc506
Parent:
17:2bf164ef973d
fixed ARM6 compiler error

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 }