Part 1 Objective
After you upload the program, the RGB LEDs on the RGB module connected to pin A13 on MegaPi light up in turn, achieving the marquee effect.
Part 2 Preparation
-
MegaPi x 1
-
RGB module x 1
-
3-pin jumper x 1
-
USB cable x 1
-
Computer with network access x 1
Connect MegaPi to the computer by using the cable, connect the RGB module to MegaPi by using the jumper, open mBlock 5 (PC client or web version), click +add, select mBot Mega from the Device Library, click Connect, and select the Upload mode.
Part 3 Programming
The RGB LEDs light up one by one in turn.
Part 4 Practice
-
Try to change the light color of the RGB LEDs.
-
Try to change the change speed and light-up sequence of the RGB LEDs.
Comments
Please sign in to leave a comment.