Blinky example (blinking a LED) by Pharap

Dependencies:   PokittoLib

Fork of HelloWorld by Pokitto Community Team

/media/uploads/Pokitto/9158987a0a515653f5ae7a4898c32517bced1b53.png

/media/uploads/Pokitto/ce2e6057553d5cc79a6f7532a538c4478d1dc344_1_666x500.jpg

Blinking an LED with Pokitto / LEDin vilkutus Pokittolla

Instructions/ohjeet:

https://talk.pokitto.com/t/wiki-draft-using-the-pex-01-a-simple-led-project/613

Files at this revision

API Documentation at this revision

Comitter:
Pokitto
Date:
Fri Jan 05 02:29:59 2018 +0000
Parent:
8:1f8f91d671a5
Child:
10:3ca58d7decfd
Commit message:
PokittoLib updated

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
--- a/PokittoLib.lib	Wed Nov 22 22:33:43 2017 +0000
+++ b/PokittoLib.lib	Fri Jan 05 02:29:59 2018 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/Pokitto/code/PokittoLib/#fa6899411a24
+https://os.mbed.com/users/Pokitto/code/PokittoLib/#958b71c4b92a
--- a/main.cpp	Wed Nov 22 22:33:43 2017 +0000
+++ b/main.cpp	Fri Jan 05 02:29:59 2018 +0000
@@ -21,7 +21,10 @@
         {
             // write 'Hello World!' to the screen
                         // this is so you can tell the Pokitto is running
-            pokitto.display.print("Hello World!");
+            pokitto.display.color=led0+1;
+            pokitto.display.setCursor(0,0);
+            if (led0==0) pokitto.display.print("Hello World!");
+            else pokitto.display.print("Hei Etlari!");
 
             // if the A button is pressed
             if(pokitto.buttons.aBtn())