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.
main.cpp
- Committer:
- jksoft
- Date:
- 2014-05-24
- Revision:
- 0:59094f61cffe
File content as of revision 0:59094f61cffe:
/**
* Jksoft Blue mbed Board
*
* Push switch input test program
*
* Copyright (C) 2014 Junichi Katsu (JKSOFT)
*/
#include "mbed.h"
DigitalOut myled(LED1);
DigitalIn SW1(p25);
DigitalIn SW2(p26);
int main() {
SW1.mode(PullUp);
SW2.mode(PullUp);
while(1)
{
if(SW1 == 0)
{
myled = 1;
}
if(SW2 == 0)
{
myled = 0;
}
}
}