Writing about Raspberry Pi Traffic Light for educational and informational purposes only. however, do not hesitate to use this information on your own risk as we make no warranty of any kind.
Making Raspberry Pi Traffic Light.
This is a good example of how to switch on/off a GPIO