I have installed the RPi.GPIO library from Github for BananaPi and my python script doesn’t toggle the GPIO pin. Here is the script
#!/usr/bin/env python import RPi.GPIO as GPIO import time PIN_NUM = 7
GPIO.setmode(GPIO.BCM) GPIO.setup(PIN_NUM, GPIO.OUT) GPIO.output(PIN_NUM, GPIO.LOW) while True: GPIO.output(PIN_NUM, GPIO.HIGH) time.sleep(1) GPIO.output(PIN_NUM, GPIO.LOW) time.sleep(1)
When I run the above script using command “python gpio.py” I get the error " This module can only run on Raspberry Pi".
I also tried installing wiringPi and write a simple C code to toggle the GPIO, It runs, but I do not see the GPIO toggle.