I am using beaglebone black revision C running kernel 4.1.21-bone-rt-r20 ,re4lease Debian Jessie.
I have installed the Adafruit BBIO and check that the installation was successfull by doing the follwing
import Adafruit_BBIO.GPIO as GPIO; print GPIO
<module ‘Adafruit_BBIO.GPIO’ from ‘/root/.python-eggs/Adafruit_BBIO-1.0.0-py2.7-linux-armv7l.egg-tmp/Adafruit_BBIO/GPIO.so’>
whne I try to run a python program example like below:
Blinks one of the Beaglebone Black’s on-board LEDs until CTRL-C is pressed. T$
Import PyBBIO library
from bbio import *
#import the time module which allows us to set the timing for a loop event
#Create variable called ledPin which refers to one of the designated onboard US$
ledPin = “USR3”
Create a setup function
Set one of the USR LEDs as output
Set up a loop and the blink timing to two second intervals
Start the pin state at LOW = off
Hold this state for 2 seconds
Change the pin state to HIGH = on
time.sleep(2) code ici…
I got a segmentaion fault.
Can you tell me what could be wrong here?