Carter John
/
1_pin_on
Make 1 pin as output and turn it on.
Revision 0:b020d40b9e13, committed 2017-07-11
- Comitter:
- ElectronicsSanta
- Date:
- Tue Jul 11 08:41:20 2017 +0000
- Commit message:
- first commit
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
diff -r 000000000000 -r b020d40b9e13 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Jul 11 08:41:20 2017 +0000 @@ -0,0 +1,10 @@ +#include "mbed.h" + +Serial serial(SERIAL_TX, SERIAL_RX); +DigitalOut power(PB_13); + +int main() { + serial.baud(115200); + serial.printf("I've got the power!\n"); + power = 1; +} \ No newline at end of file
diff -r 000000000000 -r b020d40b9e13 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Jul 11 08:41:20 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed/builds/22da6e220af6 \ No newline at end of file