Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Address Issue 181 : Failing to set current on A4A boards
Browse files Browse the repository at this point in the history
Umikaze 2.2.1-RC2 includes updated versions of Adafruit-BBIO
This new library changes how the SPI module works.

This changes the DAC class to match the updated SPI module
to use /dev/spidev2_0
  • Loading branch information
zaped212 authored and Wackerbarth committed Mar 7, 2019
1 parent 11efa29 commit 00071ca
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions redeem/DAC.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@ def __init__(self, channel):
self.offset = 0.0
if 'SPI' in globals():
# init the SPI for the DAC
try:
self.spi2_0 = SPI(0, 0)
except IOError:
self.spi2_0 = SPI(1, 0)
self.spi2_0 = SPI(2, 0)
self.spi2_0.bpw = 8
self.spi2_0.mode = 1
else:
Expand Down

0 comments on commit 00071ca

Please sign in to comment.