![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
progamme experience
Dependencies: mbed RGB_matrix_Panel_modif
Diff: main.cpp
- Revision:
- 6:634556bcf67a
- Parent:
- 5:e429087355fc
--- a/main.cpp Mon May 27 10:22:27 2019 +0000 +++ b/main.cpp Mon May 27 11:17:37 2019 +0000 @@ -30,7 +30,7 @@ /* //Config ST F303K8 PinName ur1=D2; -PinName ug1=D3; +PinName ug1=D3;+ PinName ub1=D4; PinName lr2=D5; PinName lg2=D6; @@ -42,7 +42,7 @@ DigitalOut depart(p5,0); // Depart filaire -Serial pc(USBTX,USBRX,115200); +//Serial pc(USBTX,USBRX,115200); int main() { @@ -52,18 +52,18 @@ while(1) { if(BT_PR.readable()) { //Réception d'instruction de l'expérience if(BT_PR.getc() == 'A') { - pc.printf("signal depart recu\n\r"); + //pc.printf("signal depart recu\n\r"); for (int i =0; i<3; i++) { // Clignotement panneau matrix.fillScreen(matrix.Color333(0, 0, 0)); wait_ms(500); matrix.fillScreen(matrix.Color333(7, 0, 0)); wait_ms(500); } - pc.printf("depart filaire\n\r"); + // pc.printf("depart filaire\n\r"); depart = 1; // départ filaire - pc.printf("depart bluetooth\n\r"); + // pc.printf("depart bluetooth\n\r"); BT_E.printf("D"); // départ bluetooth - pc.printf("envoye\n\r"); + // pc.printf("envoye\n\r"); matrix.fillScreen(matrix.Color333(0, 0, 0)); while(1) {