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
Revision 9:a6bed03648e5, committed 2018-01-05
- 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())