EasyManua.ls Logo

Adafruit Feather M4 Express - Page 139

Adafruit Feather M4 Express
178 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Read the Docs
For a more in depth look at what dotstar can do, check out DotStar on Read the Docs (https://adafru.it/C4d).
import board
import busio
def is_hardware_spi(clock_pin, data_pin):
try:
p = busio.SPI(clock_pin, data_pin)
p.deinit()
return True
except ValueError:
return False
# Provide the two pins you intend to use.
if is_hardware_spi(board.A1, board.A2):
print("This pin combination is hardware SPI!")
else:
print("This pin combination isn't hardware SPI.")
© Adafruit Industries https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51 Page 144 of 183

Table of Contents

Related product manuals