Blinky example (blinking a LED) by Pharap
Dependencies: PokittoLib
Fork of HelloWorld by
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
Diff: main.cpp
- Revision:
- 9:a6bed03648e5
- Parent:
- 8:1f8f91d671a5
--- 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())