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:
- 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;
}
}