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:
- boalinlai
- Date:
- 2016-09-07
- Revision:
- 1:2d92ecdbd38b
- Parent:
- 0:cc2c1ca74f72
File content as of revision 1:2d92ecdbd38b:
#include "mbed.h"
DigitalOut myled1(p21);
DigitalIn inp(p30);
//admin test
int main() {
    while (1) {
        if (inp < 0.1){
            myled1 = 0;
        }
        else
        {
            myled1 = 1;
        }
        
        wait(0.2);
        // part 2
    }
}
            
    