Dear,
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:
`
#!/usr/bin/python
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
import time
#Create variable called ledPin which refers to one of the designated onboard US$
ledPin = “USR3”
Create a setup function
def setup():
Set one of the USR LEDs as output
pinMode(ledPin, OUTPUT)
Set up a loop and the blink timing to two second intervals
while True:
Start the pin state at LOW = off
digitalWrite(ledPin, LOW)
Hold this state for 2 seconds
time.sleep(2)
Change the pin state to HIGH = on
digitalWrite(ledPin, HIGH)
time.sleep(2) code ici…
`
I got a segmentaion fault.
Can you tell me what could be wrong here?