Git Product home page Git Product logo

ht1621-7-seg's Introduction

HT1621 7 segment LCD Arduino library for ESP32

Note: This library has hot fixes for correct work with ESP32.

Arduino library for 7-segment lcds based on the HT1621 driver. Very often marked as PDC-6X1.

photo

Based on the bitbanging efforts by anxzhu (2016-2018).
APIs rewritten in 2018 to follow the LiquidCrystal format by valerio\new.

APIs reference

  • void begin(int cs_p, int wr_p, int data_p,[int backlight_p])
    Starts the lcd with the pin assignement declared. The backlight pin is optional

  • void clear()
    Clears the display

  • void backlight()
    Turns on the backlight

  • void noBacklight()
    Turns off the backlight

  • void setBatteryLevel(int level)
    Accepts values from 0 to 3. Smaller values will be treated like 0, bigger values will be treated as 3. 0 turns off the battery symbol. Values from 1 to 3 will be represented by the rectangles above the battery symbol.

  • void print(long num)
    Prints a signed integer between -99999 and 999999. Larger and smaller values will be displayed as -99999 and 999999

  • void print(float num)
    Prints a float with 3 decimals.

  • void print(float num, int precision)
    Prints a float with 0 to 3 decimals, based on the precision parameter.

  • void noDisplay()
    Turns off the display (doesn't turn off the backlight)

  • void display()
    Turns the display back on after it has been disabled by noDisplay()

Internal functioning

° -> 0x33 = 10 + 20 + 01 + 02
C -> 0x1D = 10 + 01 + 04 + 08

  ___10___
 |        |
 01       20
 |___02___|
 |        |
 04       40
 |___08___|

ht1621-7-seg's People

Contributors

anxzhu avatar jarekparal avatar per1234 avatar valerionew avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.