74HC595_7seg

Drive one 7 segment display with a 74HC595
Author: Djeremaille
License:
Github: djrm/gpio/spi/74HC595_7segments.axo

Inlets

int32 chain in i

Outlets

int32 out

frac32 out

Control Rate
if (inlet_in == 0)
  outlet_outf = 0x3F;
outlet_outi = outlet_outf;
if (inlet_in == 1)
  outlet_outf = 0x6;
outlet_outi = outlet_outf;
if (inlet_in == 2)
  outlet_outf = 0x5B;
outlet_outi = outlet_outf;
if (inlet_in == 3)
  outlet_outf = 0x4F;
outlet_outi = outlet_outf;
if (inlet_in == 4)
  outlet_outf = 0x66;
outlet_outi = outlet_outf;
if (inlet_in == 5)
  outlet_outf = 0x6D;
outlet_outi = outlet_outf;
if (inlet_in == 6)
  outlet_outf = 0x7D;
outlet_outi = outlet_outf;
if (inlet_in == 7)
  outlet_outf = 0x7;
outlet_outi = outlet_outf;
if (inlet_in == 8)
  outlet_outf = 0x7F;
outlet_outi = outlet_outf;
if (inlet_in == 9)
  outlet_outf = 0x6F;
outlet_outi = outlet_outf;

Privacy

© 2024 Zrna Research