I have Raspberry Pi B+ and i just bought 8 channel relay. i successfully connected but i really need a simple code to run it to trun on and off the channel relay?
would you please help me
I have Raspberry Pi B+ and i just bought 8 channel relay. i successfully connected but i really need a simple code to run it to trun on and off the channel relay?
would you please help me
My favorite reference for RasPi GPIO hardware and programming is the RasPi Hardware Wiki: http://elinux.org/RPi_Low-level_peripherals
It has programming examples in various languages, including Python: http://elinux.org/RPi_Low-level_peripherals#Python
The Wiki indicates that you need to "sudo" in order to access the GPIOs. Most of the examples require "sudo" in some form because the /dev/mem device driver normally requires that you run as root. For more information on this, see the Wiki and the element14 discussion: http://www.element14.com/community/message/60894/l/anyone-know-how-to-access-raspi-gpio-without-sudo#60894
My favorite reference for RasPi GPIO hardware and programming is the RasPi Hardware Wiki: http://elinux.org/RPi_Low-level_peripherals
It has programming examples in various languages, including Python: http://elinux.org/RPi_Low-level_peripherals#Python
The Wiki indicates that you need to "sudo" in order to access the GPIOs. Most of the examples require "sudo" in some form because the /dev/mem device driver normally requires that you run as root. For more information on this, see the Wiki and the element14 discussion: http://www.element14.com/community/message/60894/l/anyone-know-how-to-access-raspi-gpio-without-sudo#60894