testing forking

Dependencies:   mbed

Fork of ConsolTest by Pipeline Technology Centre

main.cpp

Committer:
aidanPJG
Date:
2015-06-30
Revision:
1:860a22e395c9
Parent:
0:7f5f4575bc6f
Child:
2:7d53e9959b8f

File content as of revision 1:860a22e395c9:

#include "mbed.h"
 
Serial pc(USBTX, USBRX); // tx, rx
DigitalIn input(p8);
PwmOut led(LED1);
 
float brightness = 0.0;
 
int main() {
    pc.printf("new program");
 
    while(1) {
        if (input)
        {
            pc.printf("true");
            wait(1);
        }
        else
        {
            pc.printf("false");
            wait(1);
        }
 
    }
}