NBoard / Mbed 2 deprecated NBoard_Serial

Dependencies:   mbed

Fork of NBoard_IO by NBoard

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers NBoard_Serial.cpp Source File

NBoard_Serial.cpp

00001 #include "mbed.h"
00002 
00003 Serial PC(USBTX,USBRX);
00004 BusIn boutons(PA_9,PA_10,PB_0,PB_7);
00005 //
00006 int main() {
00007     boutons.mode(PullUp);
00008     PC.printf("Test Bus bouton \n");
00009     while(1) {
00010         wait(0.5);
00011         PC.printf("Bus Bouton = %02X \n", boutons.read());
00012     }
00013 }