From the previous project we have seen how to blink LED (white colour). This project post will demonstrate how to flash the on board LED colour combinations without much math. So the LED is connected as follows. RED → PF1 BLUE → PF2 GREEN → PF3 Therefore to display red we need to output 0x02, here '2' because PF0 is not being used. Similarly to display purple/violet → 0x06, blue → 0x04, aqua blue/ greenish blue → 0x0c, green → 0x08, yellow → 0x09, white → 0x0e and none → 0. Now lets focus on the sequence: 0, R, RG, G, GB, B, RB, RGB. For the above mentioned sequence the system states are as follows: Here the states are addressed as D2D1D0 and the next state as O2O1O0 Present State Next State Output 000 001 000 001 ...
A blog on understanding things with simplicity...