This project let's you control a 4 digit 7segment display with python on raspberry

This project can be used in other projects, to display a number (not decimal).

The wiring can be a bit tricky. Some pins need a resistor, others don't. The display is of the 'Common Cathode' type.


Run the code in Pyhton and you will see the result. If the number is higher than 9999, the display shows 'HIGH'


In the example code, the number to display is hard coded. But you can replace it with de value of a variable.