Microcontroller › 8051 › I need assistance › What you need to do is ,
June 19, 2012 at 12:14 pm
#8076
midhun
Participant
What you need to do is , first you should write a code to understand that where, which color lights should be switched ‘ON’.
You can write seperate sub programs (functions) say, void left(void), void rignt(void), void straight(void), void (back).
in each function you should write code to get the data from your look-up table.
once the data is taken you can just send it to the port where your light is connected.