Skip to content

Instantly share code, notes, and snippets.

Created January 24, 2013 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/4629933 to your computer and use it in GitHub Desktop.
Save anonymous/4629933 to your computer and use it in GitHub Desktop.
#include <SPI.h>
#include <max7456.h>
Max7456 osd;
void setup()
{
charact currentChar;
char number[]="000";
SPI.begin();
Serial.begin(9600);
osd.init(10);
osd.activateOSD(false); // Deactivate osd display.
for(int i = 0 ; i <= 0xff;i++)
{
Serial.println();
Serial.print("inserting ");
dtostrf(i,3,0,number);
Serial.print(number);
Serial.print(" / 255 -> ");
osd.getCharacter(currentChar,i&0xF0, i&0xF0);
Serial.print(*currentChar);
}
}
void loop()
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment