From 49b6feff70fe4cb2fbf702d3719a2de4d141b29c Mon Sep 17 00:00:00 2001 From: Hans Oostendorp Date: Fri, 6 Sep 2019 10:26:25 +0200 Subject: [PATCH] add SPI support for Orange Pi Zero --- src/busio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/busio.py b/src/busio.py index 0f4b15b..0ddf7dc 100755 --- a/src/busio.py +++ b/src/busio.py @@ -96,7 +96,7 @@ class SPI(Lockable): elif detector.board.any_beaglebone: from adafruit_blinka.microcontroller.am335x.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI - elif board_id == ap_board.ORANGE_PI_PC or board_id == ap_board.ORANGE_PI_R1: + elif board_id == ap_board.ORANGE_PI_PC or board_id == ap_board.ORANGE_PI_R1 or board_id == ap_board.ORANGE_PI_ZERO: from adafruit_blinka.microcontroller.allwinner_h3.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI elif board_id == ap_board.GIANT_BOARD: -- 2.49.0