Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 2.26 KB

README.md

File metadata and controls

61 lines (44 loc) · 2.26 KB

74HC595 4-Digit 7-Segment Display Library for Arduino - DIYables_4Digit7Segment_74HC595

This library is designed for Arduino, ESP32, ESP8266... to control the 74HC595 4-Digit 7-Segment Display LED module, which has 4 dots.

74HC595 4-Digit 7-Segment Display Module

Product Link

74HC595 4-Digit 7-Segment Display Module

Features

  • High-Level: Displaying Integer with the zero-padding option, supporting the negative number
  • High-Level: Displaying Float with the decimal place, zero-padding options, supporting the negative number
  • Low-Level: Displaying numeric characters digit-by-digit
  • Low-Level: Displaying non-numeric characters digit-by-digit, including:
    • - (dash)
    • _ (underscore)
    • ° (degree)
    • C
    • E
    • F
  • Low-Level: Displaying dot (decimal place) digit-by-digit

Available Functions

  • DIYables_4Digit7Segment_74HC595(int sclk, int rclk, int dio);
  • void printInt(int number, bool zero_padding);
  • void printFloat(float number, int decimal_place, bool zero_padding);
  • void clear();
  • void setDot(int pos);
  • void setNumber(int pos, int value);
  • void setChar(int pos, SegChars value);
  • void show();
  • void loop();

Available Examples

  • DisplayInteger
  • DisplayFloat
  • DisplayTemperature

References

Tutorials

DIYables invests time and resources providing this open source code, please support DIYables hardware by purchasing products from DIYables!