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
Copy file name to clipboardExpand all lines: README.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,14 @@ A pure Python SPI interface using the Linux spidev device
12
12
- Supports half-duplex reads and writes as well as full-duplex transfers.
13
13
- Exposes all available spidev interface options as properties.
14
14
15
+
## Requirements
16
+
17
+
- spidev enabled in the kernel and (if necessary) the device tree.
18
+
- Write permissions to the /dev/spidevN.N device.
19
+
- Some distributions have an 'spi' group for this purpose. If available, add this group to the user account and ensure the spidev device is group-writeable.
20
+
- If no 'spi' group exists, a udev rule can be created to set the permissions of the spidev device.
21
+
- As a last resort, running the python script as root should allow access to the spidev. **Note** This is not recommended. Use the 'spi' group or udev rules whenever possible.
0 commit comments