Skip to content

Raspberry pi PICO library for tm1637 LED segment modules

License

Notifications You must be signed in to change notification settings

gavinlyonsrepo/TM1637_PICO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Donate

TM1637_PICO

Table of contents

Overview

  • Display Name: TM1637
  • Author: Gavin Lyons.
  • Description: A Raspberry pi PICO SDK C++ library to drive TM1637 LED seven segment modules.

Hardware

Connections to RPI:

  1. GPIO = CLK = Clock
  2. GPIO = DIO = Data input / output
  3. VCC 3.3V (or 5V see Note)
  4. GND

NOTE : If VCC is set to 5V, level shift GPIO to 3.3V or damage could result.

This library is tested on one variant of the TM1637 (model 4) which has 4 digits with centred semi-colon , the library should work with other models (six digit, decimal points, etc) but is untested.

Model 4:

 model4

Software

There is one example file. A table in file 'tm1637_font_data.cpp' provides ASCII to Seven Segment data. . gfedcba (seven segments ) In the gfedcba representation, a byte value of 0x06 would turn on segments "c" and "b", which would display a "1". https://en.wikipedia.org/wiki/Seven-segment_display

Comms delay

The Serial Communications delay used is set by default to 75 uS, user can change this in constructor parameters.