Raharja Agie / Mbed 2 deprecated Mini-X
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers setup.h Source File

setup.h

00001 Serial pc(USBTX, USBRX);
00002 Serial ahrs(p28, p27);
00003 Serial radio(p13, p14);
00004 I2C i2c(p9, p10); //sda, scl
00005 Ticker SendData;
00006 Ticker Proccess;
00007 DigitalOut myled(LED1);
00008 AnalogIn alti(p20);
00009 AnalogIn bat(p19);
00010 AnalogIn IRl(p18);
00011 AnalogIn IRb(p17);
00012 AnalogIn IRr(p16);
00013 AnalogIn IRf(p15);
00014 
00015 void setup(){
00016     pc.baud(115200);
00017     radio.baud(115200);
00018     ahrs.baud(115200);
00019 }
00020