You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the following code causes the BeagleBone to crash when it gets
to the SPI0.write() call. To recover, I have to reset the board.
Am I doing something wrong here?
I am new to both the BeagleBone and PyBBIO, so I may be making a newbie error.
However, I have run a few tests involving the GPIOs and they all seem to work ok.
The blinking led example works fine, so I think the installation is ok.
I currently have no circuits connected to the board, so the tests using the GPIOs
are just wiggling pins (I have checked a few using a multi-meter, make sure they're
responding).
import sys
from time import sleep
from bbio import *
def setup():
SPI0.open()
SPI0.setClockMode(0,0) # means data stable on rising edge?
SPI0.setMaxFrequency(0,1000000) # 1 MHz
SPI0.setBitsPerWord(0,10) # 2 bits used to specify pots, then value
SPI0.setMSBFirst(0)
Running the following code causes the BeagleBone to crash when it gets
to the SPI0.write() call. To recover, I have to reset the board.
Am I doing something wrong here?
I am new to both the BeagleBone and PyBBIO, so I may be making a newbie error.
However, I have run a few tests involving the GPIOs and they all seem to work ok.
The blinking led example works fine, so I think the installation is ok.
I currently have no circuits connected to the board, so the tests using the GPIOs
are just wiggling pins (I have checked a few using a multi-meter, make sure they're
responding).
Jon Turner
import sys
from bbio import *
def setup():
SPI0.open()
SPI0.setClockMode(0,0)
SPI0.setMaxFrequency(0,1000000)
SPI0.setBitsPerWord(0,10)
SPI0.setMSBFirst(0)
def loop() :
print "about to write"
SPI0.write(0,[0x15])
print "done"
sys.exit(0)
run(setup, loop)
The text was updated successfully, but these errors were encountered: