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?
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/095a726a-1b6c-41a6-a540-a9c48a7db10d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.