Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Blinking_Leds_Forloop.cpp
- Committer:
- kgabriel
- Date:
- 2021-06-02
- Revision:
- 4:f4fcecf27b0e
File content as of revision 4:f4fcecf27b0e:
#include "mbed.h" #include "C12832.h" DigitalIn pushButton(p9); C12832 lcd(SPI_MOSI,SPI_SCK,SPI_MISO,p8,p10); void display(char *lcdPrint){ lcd.cls(); lcd.printf(lcdPrint); lcd.locate(3,5); } int main(){ while(1){ int i; if(pushButton==1){ DigitalOut led(p5); for(i=0;i<3;i++){ led = 0; display("LED Blinking1"); wait(2); led=1; wait(2); } led=0; wait(1); } } }