#include "Max7456WriteTable.h"
void setup()
{
Serial.begin(115200);
Serial.println("INSERTING CHARACTERS TABLE IN MAX7456");
Serial.println("ARE YOU SURE ? (y/n)");
bool goodChar = false;
osd->activateOSD(false);
while(!goodChar)
{
while(!Serial.available() );
char found;
found = char(Serial.read());
goodChar = (found == 'y' || found == 'Y');
if(found == 'n' || found == 'N')
{
Serial.println("------ NOTHING DONE ------");
Serial.println("please unplug your arduino");
while(true);
}
}
char number[]="000";
for(int i = 0 ; i <= 0xff;i++)
{
Serial.print("inserting ");
dtostrf(i,3,0,number);
Serial.print(number);
Serial.print(" / 255");
osd->sendCharacter(currentChar,i);
for(int j=0 ; j<19 ; j++)
Serial.print(char(0x08));
}
Serial.println("--------- DONE ! ---------");
Serial.println("please unplug your arduino");
}
void loop()
{
}