LED MATRIX
pin13
pin14
pin15
pin16
Code Overview, Compile and run
In this example we'll active the matrix LED in heart shape, we create an array of LED's and then decide which LED
will be on and which one will be off creating a heart shape by the numbers 1 and 0.
Then we go for each place in the array of numbers and send turn on the LED that states 1 (on) and leave the LED off
that states 0 (off)
Compile the script by going into the samples directory and running: python3 matrix_heart.py
Raspberry Pi
GPIO12
GPIO16
GPIO20
GPIO21
47 of 114
Need help?
Do you have a question about the Raspberry Pi & Arduino Starter Kit and is the answer not in the manual?