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
initDatabed/initDatabed.cpp
- Committer:
- perr1940
- Date:
- 2014-10-16
- Revision:
- 1:78452728a306
- Parent:
- 0:cbb61997e231
- Child:
- 2:b87aaf1bc803
File content as of revision 1:78452728a306:
#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(1000000); comm.format(8,1); wait(1); pc.printf("Starting databed...\r\n"); }