Echo characters on a serial port using the MultiTech Dragonfly.
Dependencies: mbed
Diff: main.cpp
- Revision:
- 1:ded5da421bd0
- Parent:
- 0:d88fbcdff4fb
--- a/main.cpp Fri Oct 02 14:23:27 2015 +0000 +++ b/main.cpp Fri Feb 26 16:56:54 2016 +0000 @@ -11,8 +11,16 @@ */ #include "mbed.h" + +// This line controls the regulator's battery charger. +// BC_NCE = 0 enables the battery charger +// BC_NCE = 1 disables the battery charger +DigitalOut bc_nce(PB_2); int main() { + // Disable the battery charger unless a battery is attached. + bc_nce = 1; + Serial pc(USBTX, USBRX); while (true)