Git Product home page Git Product logo

hex-seven-segment's Introduction

#######################################
# The seven segment LED has 8 LEDs
# labeled A-G and 'p' for the point
# given 4 bits of data on wires
# where wire 'a' is 2^0, wire 'b'
# is 2^1, wire 'c' is 2^2, wire 'd'
# is 2^3, we wish to illuminate the
# seven segment LED to look like the
# numerals 0-9,A,b,C,d,E,F

#  _       _   _       _   _   _
# | |   |  _|  _| |_| |_  |_    |
# |_|   | |_   _|   |  _| |_|   |
#
#  _   _   _       _       _   _
# |_| |_| |_| |_  |    _| |_  |_
# |_|  _| | | |_| |_  |_| |_  |
#

#		  A
#		 F B
#		  G
#		 E C
#		  D  p

Hex	dcba	ABCDEFGp
0	0000	11111100
1	0001	01100000
2	0010	11011010
3	0011	11110010
4	0100	01100110
5	0101	10110110
6	0110	10111110
7	0111	11100000
8	1000	11111110
9	1001	11110110
A	1010	11101110
b	1011	00111110
C	1100	10011100
d	1101	01111010
E	1110	10011110
F	1111	10001110

######################################
A: (!c !a) or (!d  b) or (c  b) or (d !a) or (!d c a) or (d !c !b)
B: (!d !c) or (!c !a) or (!d !b !a) or (!d b a) or (d !b a)
C: (!d !b) or (!d  a) or (!b a) or (!d c) or (d !c)
D: ( d !b) or (!d !c !a) or (!c b a) or (c !b a) or (c b !a)
E: (!c !a) or ( b !a) or (d  b) or (d c)
F: (!b !a) or ( c !a) or (d !c) or (d b) or (!d c !b)
G: (!c  b) or ( b !a) or (d !c) or (d a) or (!d c !b)

######################################
# 2020-08-19 see a simulation working:
https://circuitverse.org/users/33230/projects/hex-seven-segment

######################################
# LICENSE: CERN-OHL-S-2.0
######################################
CERN Open Hardware Licence Version 2 - Strongly Reciprocal
https://ohwr.org/cern_ohl_s_v2.txt
######################################

hex-seven-segment's People

Contributors

ericherman 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.