pour trouver l'automate de reception can
Fork of CRAC-Strat_copy by
Display/Display.cpp
- Committer:
- ClementBreteau
- Date:
- 2017-05-11
- Revision:
- 15:c2fc239e85df
- Parent:
- 0:ad97421fb1fb
File content as of revision 15:c2fc239e85df:
#include "Display.h" #include <stdarg.h> #include <stdio.h> CANMessage trame_Tx = CANMessage(); unsigned char curseur=0; void tactile_printf(const char* format, ...) { unsigned char i,j; va_list args; va_start(args, format); vsprintf(tableau_ecran+curseur,format, args); va_end(args); // envoi sur le bus can du tableau complet de l'ecran trame_Tx.id=ECRAN_PRINTF_1; for(j=0; j<4; j++) { trame_Tx.type=CANData; trame_Tx.len=8; for(i=0; i<8; i++) trame_Tx.data[i]=tableau_ecran[i+j*8]; can1.write(trame_Tx); wait_us(200); trame_Tx.id += 1; } }