I hope you found this helpful!

Have fun with your projects!

This classic project randomizes a number between 1 and 6 and lights up the corresponding LEDs on a dice pattern.

pos = 0;

void main() // Initialize Port 1 as output P1 = 0xFF;