This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:20.04 AS dbuild | |
ENV DEBIAN_FRONTEND noninteractive | |
# Needed for Yarn steps to veryify the keys | |
RUN apt update | |
RUN apt install --yes curl gnupg2 | |
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | |
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#The order segments are connected to the shift register (D = dot) | |
input = ['a','b','c','d','e','f','g','D'] | |
reverse = True #Depends on direction of outputs/shifting | |
negate = True #Common Cathode = False Common Anode = True | |
characters = [("abcdef", '0/O'), | |
("bc", '1/I'), | |
("abdeg", '2'), | |
("abcdg", '3'), |