Skip to content

Instantly share code, notes, and snippets.

@joonjoonjoon
Created December 19, 2016 20:26
Show Gist options
  • Save joonjoonjoon/32fd4ecb040faccb648ad5685eff0a94 to your computer and use it in GitHub Desktop.
Save joonjoonjoon/32fd4ecb040faccb648ad5685eff0a94 to your computer and use it in GitHub Desktop.
// 0 = arrow up left 30 deg
// 1 = arrow up left 60 deg
// 2 = arrow up right 30 deg
// 2 = arrow up right 60 deg
byte left30Image[8] = {
B00000,
B00000,
B11000,
B00100,
B00100,
B00000,
B00000,
};
byte left45Image[8] = {
B10000,
B01000,
B00100,
B00100,
B00100,
B00000,
B00000,
};
byte left60Image[8] = {
B01000,
B00100,
B00100,
B00100,
B00100,
B00000,
B00000,
};
byte right30Image[8] = {
B00000,
B00000,
B00011,
B00100,
B00100,
B00000,
B00000,
};
byte right45Image[8] = {
B00001,
B00010,
B00100,
B00100,
B00100,
B00000,
B00000,
};
byte right60Image[8] = {
B00010,
B00100,
B00100,
B00100,
B00100,
B00000,
B00000,
};
byte upSlopeImage[8] = {
B00001,
B00011,
B00111,
B01111,
B01111,
B11111,
B11111,
B11111,
};
byte downSlopeImage[8] = {
B10000,
B11000,
B11100,
B11110,
B11110,
B11111,
B11111,
B11111,
};
void CharSetup()
{
lcd.createChar(left30, left30Image);
lcd.createChar(left45, left45Image);
lcd.createChar(left60, left60Image);
lcd.createChar(right30, right30Image);
lcd.createChar(right45, right45Image);
lcd.createChar(right60, right60Image);
lcd.createChar(upSlope, upSlopeImage);
lcd.createChar(downSlope, downSlopeImage);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment