Elecrow Raspberry Pi & Arduino Starter Kit User Manual page 37

Table of Contents

Advertisement

Code Overview, Compile and run
The code is quite long but don't be afraid! This is due to the class code, the main code is actually very easy. What we
did is we setup each led on the segment led as a letter from A to H and then we turn them based on the colours that
they should be. In our example, we'll loop from 0 to 9 and show the numbers that are currently in the loop so if the
loop is on the first round (0) it will show the number zero till the last number which will be 9.
Compile the script by going into the samples directory and running: python3 1digit_segment.py
37 of 114

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Raspberry Pi & Arduino Starter Kit and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents