Skip to content

fachschaft/LCD12864

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LCD12864

Simple and straight forward LCD12864 driver with sprite and animation support

Example

void setup()
{
  // Init empty display
  LCDA.Initialise(14, 15, 16, 17, 18, 19, 20, 21, 8, 9, 10, 11);
  LCDA.Clear();
  LCDA.RenderMode();
  LCDA.RenderScreenBuffer();

  // Draw Hello World and tft logo
  LCDA.DrawText(0, 3, "Hello World");
  LCDA.DrawSprite(14, 48, Sprites::ftf_logo);
  LCDA.RenderScreenBuffer();
}

void animation(uint8_t frame) {
  LCDA.DrawAnimation(0, 51, Animations::plug, frame);
  LCDA.RenderScreenBuffer(0, 51, 2, 64);
}

void loop()
{
  while(true)
  {
    animation(0);
    delay(500);
    animation(1);
    delay(500);
  }
}

About

Simple and straight forward LCD12864 driver with sprite and animation support

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published