0.0
No commit activity in last 3 years
No release in over 3 years
Displays the time on a 4 digit 7 segment display connected to a Raspberry Pi.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.2.2, ~> 0.2
 Project Readme

Introducing the time7segment gem

Connections

Digits:

Digit  GPIO
  1     22
  2     27
  3     17
  4     24

Segments:

    index:  0  1  2  3   4   5  6   7
  segment:  a  b  c  d   e   f  g  dp
7 seg pin: 11  7  4  2   1  10  5   3
 GPIO pin: 11  4 23  8  20  10 18  25

Usage

require 'time7segment'

Time7Segment.new(%w(22 27 17 24 11 4 23 8 20 10 18 25)).start

Output

Here's a quick video of the 4 digit 7 segment display showing the time.

Resources

rpi raspberrypi gem time 7segment