Skip to content

Siapran/Nokia5110LCD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nokia5110LCD

A simple graphic library to use or emulate a Nokia 5110 LCD screen. You can either run it on a raspberry pi with wiringPi, or emulate the display using SDL2.

Usage

This code is meant to run on a raspberry pi wired up to a Nokia 5110 LCD. Please make sure you know what you're doing when you wire the LCD to your pi.

If you want to test a project directly on your computer, define LCD_EMULATED in lcd.h, and link against the SDL2 libraries. This will set up an emulated LCD Screen in a SDL window. The only functions changed are LCD_Init() and LCD_Display(). All graphic functions write in a buffer, and the buffer is sent to the LCD (or rendered with SDL) via LCD_Display().

LCD_Blit() takes a buffer using the same format as the screen buffer. You can generate these buffers using this utility.

Demos

  • Ball: Bouncing balls and text banner.

    ball demo

  • Clock: A pretty clock with date banners.

    clock demo

  • Maze: The old one-liner.

    maze demo

Modules

  • lcd.h: Core display functionalities and graphic primitives
  • font.h: Text rendering utilities

Authors

Inspired by the work of:

  • Nathan Seidle (Spark Fun Electronics 2011), published under the "Beerware licence"
  • Pierre "PierrotLL" Le Gall, published as "free software"

Licence

This code is public domain.

About

Graphic Library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages