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.
Dependencies: HIDScope MODSERIAL mbed
Fork of Signal Filter by
main.cpp
- Committer:
- Peasofcake
- Date:
- 2015-09-09
- Revision:
- 0:c8a6e00fbdc3
- Child:
- 1:f6110f80fa45
File content as of revision 0:c8a6e00fbdc3:
#include "mbed.h" DigitalOut gpo(D0); DigitalOut led(LED_GREEN); DigitalIn button(PTA4); const int led_on = 0; const int led_off = 1; const int button_pressed = 0; int main() { while (true) { if(button.read() == button_pressed) { for (int n=0; n<5 ; n++) { led.write(led_on); wait(0.5f); led.write(led_off); wait(0.5f); } } } }