Make 1 pin as output and turn it on.

Dependencies:   mbed

main.cpp

Committer:
ElectronicsSanta
Date:
2017-07-11
Revision:
0:b020d40b9e13

File content as of revision 0:b020d40b9e13:

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