https://github.com/abdnh/nokia-5110-lcd-tivaware-graphics-driver
TivaWare Graphics Driver for the Nokia 5110 LCD
https://github.com/abdnh/nokia-5110-lcd-tivaware-graphics-driver
nokia5110lcd tiva-c tivaware tm4c123gxl
Last synced: 3 months ago
JSON representation
TivaWare Graphics Driver for the Nokia 5110 LCD
- Host: GitHub
- URL: https://github.com/abdnh/nokia-5110-lcd-tivaware-graphics-driver
- Owner: abdnh
- License: mit
- Created: 2021-04-30T23:27:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-05-01T15:38:36.000Z (about 4 years ago)
- Last Synced: 2025-01-24T07:29:49.375Z (5 months ago)
- Topics: nokia5110lcd, tiva-c, tivaware, tm4c123gxl
- Language: C
- Homepage:
- Size: 4.73 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TivaWare Graphics Driver for the Nokia 5110 LCD
## Intro
A library for hooking up the [Nokia 5110](https://en.wikipedia.org/wiki/Nokia_5110) LCD
to the [TivaWare](https://www.ti.com/tool/SW-TM4C) graphics library
for the Texas Instruments TM4C [Arm Cortex-M4F](https://en.wikipedia.org/wiki/ARM_Cortex-M) device family.This wraps the Nokia 5110 LCD driver found in this page: https://users.ece.utexas.edu/~valvano/arm/Nokia5110_4C123.zip
The TivaWare graphics library provides drawing primitives, text rendering, widgets, and more.
## How to use
First, see [Nokia5110.h](lib/Nokia5110.h) for details on how you should connect your pins.
The [lib](lib/) directory contains the Nokia 5110 TivaWare graphics driver files along with the display driver files taken from the page above.
To use, include the `Nokia5110_graphics.h` header file and pass a pointer to the `Nokia5110_driver` tDisplay variable
provided by the header to the TivaWare's `GrContextInit` function. You also need to call the `Nokia5110_Init` function exported from `Nokia5110.h`:```c
tContext context;
Nokia5110_Init();
GrContextInit(&context, &Nokia5110_driver);
```## Demos
The [demo](demo/) directory contains some simple example [Code Composer Studio](https://www.ti.com/tool/CCSTUDIO) projects.
Those were only tested for the TM4C123GXL launchpad in CCS, but they should work for any Tiva C series device,
maybe after replacing the auto-generated startup code (`tm4c123gh6pm_startup_ccs.c`) and target configurations (`Tiva TM4C123GH6PM.ccxml`).You need to set up a path variable named `TIVAWARE_ROOT` pointing to the location of the TivaWare library on your system for the demo projects to build in CCS.

## TODO
I intend to add more demos as I learn more about the launchpad and TivaWare.
## References
- [TivaWare Graphics Library User's Guide](https://www.ti.com/lit/pdf/SPMU300E)
- [Guide for developing display drivers for use with the TivaWare graphics library](https://www.ti.com/lit/pdf/SPMA055)