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.
Dependencies: ExoController MODSERIAL SDFileSystem_HelloWorld UI-Honka mbed
Fork of Data Management by
Diff: initDatabed/initDatabed.cpp
- Revision:
- 0:cbb61997e231
- Child:
- 1:78452728a306
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/initDatabed/initDatabed.cpp Wed Oct 15 18:44:04 2014 +0000 @@ -0,0 +1,28 @@ +#include "mbed.h" +#include "MODSERIAL.h" + +MODSERIAL xbeeUI(p28, p27); //XBee UI crutch communication + +Serial pc(USBTX, USBRX); +SPISlave comm(p5, p6, p7, p8); // mosi, miso, sclk, ssel + +// amplifier power on +DigitalOut mainPower(p26); // power to board/motors etc + +// various LEDs +DigitalOut statusLed(p15); +DigitalOut boardLed1(LED1); +DigitalOut boardLed2(LED2); +DigitalOut boardLed3(LED3); +DigitalOut boardLed4(LED4); + +void initializeDatabed() { + xbeeUI.baud(115200); + pc.baud(921600); + + comm.frequency(12000000); + + wait(1); + pc.printf("Starting databed...\r\n"); + +}