Git Product home page Git Product logo

nokia-lcd5110-hal's Introduction

Nokia-LCD5110-HAL

This library is used to control Nokia's 5110 LCD on STM32 devices. It was built on STM's HAL and intends to offer an easy and fast way to use 5110 using HAL's GPIOs. It's based on two other 5110 libraries:

  1. Tilen Majerle's
    @website http://stm32f4-discovery.com
    @link http://stm32f4-discovery.com/pcd8544-nokia-33105110-lcd-stm32f429-discovery-library/
    This library was built for STM devices but it doesn't run on HAL.
    Tilen also has a great site about STM32.

  2. RinkyDinkElectronics' @website http://www.RinkyDinkElectronics.com/ This library was built to control 5110 for Arduino.

And it's also based on this tutorial which is a great starting point to learn the basics about the display.

I've read both libraries and used many things of them. Some functions are exactly the same but there are modified functions too. Feel free to use this library and modify it. :D

How to use this library?

This library was built to use with STM32 HAL for STM32 devices. It's recommended to use it with STM32CubeMX.

Steps to use this library:

  1. Configure the desired pins you want to use with the LCD as GPIOs on STM32CubeMX.

  2. Import this library into your generated project.

  3. Configure your pins using the library set functions:
    LCD_setRST(PORT, PIN)
    LCD_setCE(PORT, PIN)
    LCD_setDC(PORT, PIN)
    LCD_setDIN(PORT, PIN)
    LCD_setCLK(PORT, PIN)

  4. Call LCD_init() to initialize the LCD
    Now the display is initialized and ready to use.

Example:
4) Call: LCD_print("Hello World", 0, 0).


Author: Caio Rodrigo
Github: https://github.com/Zeldax64?tab=repositories

nokia-lcd5110-hal's People

Contributors

zeldax64 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nokia-lcd5110-hal's Issues

Incorrect function name in LCD_drawLine()

in a block :
---CUT---
else if (x1==x2){
if (y1>y2){
tmp=y1;
y1=y2;
y2=tmp;
}
LCD_drawHLine(x1,** y1, y2-y1);
}
---CUT--
LCD_drawHLine should be changed to LCD_drawVLine

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.