From: Brennen Bearnes Date: Tue, 18 Dec 2018 05:42:10 +0000 (-0700) Subject: correct orange pi constant names X-Git-Tag: 1.0.2~1^2~10 X-Git-Url: https://git.ayoreis.com/Adafruit_Blinka-hackapet.git/commitdiff_plain/b7bfa06a5bde8ed679a6b9b79f98111949175779 correct orange pi constant names --- 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: