This is my first attempt at a simple PIC code.

The intention is that it is a set of traffic lights, Road1 and Road2.

Road1 is always green

Unless:

Sensor at road2 is triggered, road1 lights go red, road2 lights go green

httpv://www.youtube.com/watch?v=78bQG22n1wo

Code was wrote in MikroC. This was my first code and the development board used is an easyPIC5. The intention of this is to build up my understanding so that I can produce an X-axis controller unit for my mill power feed.