AdSense

Friday, July 14, 2017

7 - Raspberry Pi and Sense HAT (IV): colors with 8x8 RGB LED matrix


RASPBERRY PI AND SENSE HAT (IV): 8x8 RGB LED matrix

- Layout for this exercise:




- Sense HAT includes a 8×8 RGB LED matrix that is available to program for displaying different color effects


1 - Scrolling time and date in the RGB LED matrix


- This Python program uses color red (255,0,0) for the time and color blue (0,0,255) for the date:






- Giving execution permissions:




- Running the program:




- The output can be seen in this video:


https://www.dropbox.com/s/6osa24003h11moj/Video%20Jun%2028%2C%2010%2005%2009%20AM.mov?dl=0


2 - Rainbow


- Program for displaying the 7 colors of the rainbow:






- Giving execution permissions:




- Running the Python program: