From b7bfa06a5bde8ed679a6b9b79f98111949175779 Mon Sep 17 00:00:00 2001 From: Brennen Bearnes Date: Mon, 17 Dec 2018 22:42:10 -0700 Subject: [PATCH] correct orange pi constant names --- src/board.py | 2 +- src/busio.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/board.py b/src/board.py index 566d86a..6c0803e 100755 --- a/src/board.py +++ b/src/board.py @@ -49,7 +49,7 @@ elif board_id in ap_board.ANY_RASPBERRY_PI_2_OR_3: elif board_id == ap_board.BEAGLEBONE_BLACK: from adafruit_blinka.board.beaglebone_black import * -elif board_id == ap_board.ORANGEPI_PC: +elif board_id == ap_board.ORANGE_PI_PC: from adafruit_blinka.board.orangepipc import * elif "sphinx" in sys.modules: diff --git a/src/busio.py b/src/busio.py index d3bdbf5..f5a93af 100755 --- a/src/busio.py +++ b/src/busio.py @@ -16,7 +16,7 @@ EMBEDDED_LINUX_BOARDS = ( ap_board.RASPBERRY_PI_3B, ap_board.RASPBERRY_PI_3B_PLUS, ap_board.BEAGLEBONE_BLACK, - ap_board.ORANGEPI_PC, + ap_board.ORANGE_PI_PC, ) class I2C(Lockable): @@ -104,7 +104,7 @@ class SPI(Lockable): elif board_id == ap_board.BEAGLEBONE_BLACK: from adafruit_blinka.microcontroller.am335x.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI - elif board_id == ap_board.ORANGEPI_PC: + elif board_id == ap_board.ORANGE_PI_PC: from adafruit_blinka.microcontroller.allwinner_h3.pin import Pin from adafruit_blinka.microcontroller.generic_linux.spi import SPI as _SPI else: -- 2.49.0