Exemple sortie sur terminal (Debug) NBoard
Dependencies: mbed
Fork of NBoard_IO by
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 }
Generated on Wed Jul 20 2022 08:28:37 by
1.7.2
