01-06-2017, 04:59 PM
(This post was last modified: 01-06-2017, 05:01 PM by herialtifa.)
(01-06-2017, 09:15 AM)martinayotte Wrote: Use this Python library : https://github.com/swkim01/RPi.GPIO-PineA64Thanks Martinayotte,
Here some loopback testing code :
Code:#!/usr/bin/python
import RPi.SPI as spi
data = [0xDE,0xAD,0xBE,0xEF,0xBA,0xAD,0xF0,0x0D]
spi.open("/dev/spidev0.0")
spi.write(data)
data = spi.xfer(data, len(data))
spi.close()
print data
What the spi.xfer?
I look 2 pins SPI (pi2bus and euler),
which the pin i can call /dev/spidev0.0 and /dev/spidev0.1?
On raspi tutorial, we can look spidev0.0 in /dev but in pine not found.
Sent from my Mi-4c using Tapatalk