Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of CRAC-Strat_2017 by
Display/Display.cpp
- Committer:
- antbig
- Date:
- 2016-04-13
- Revision:
- 0:ad97421fb1fb
File content as of revision 0:ad97421fb1fb:
#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;
}
}
