Cyrus Goodger / Mbed 2 deprecated Project_Test_4

Dependencies:   mbed

main.cpp

Committer:
cgoodger
Date:
2019-11-21
Revision:
0:e653f6cb0a04

File content as of revision 0:e653f6cb0a04:

#include "mbed.h"
DigitalOut red1(p21);           //Assign digital output value of red1 to mbed pin p21
AnalogIn(p17);
void do_something(int param1); 
    int global_variable;
        main() { global_variable = 1; 
            while(1)                        /* Stay in this loop */ 
            {      
            if( global_variable )        
            red1=1;
             } 
}