Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
318 B

import board
import digitalio
import busio
print("Check on the mic")
# Try creating digital input:
pin = digitalio.DigitalInOut(board.D4)
print("Digital IO ok!")
# I2C
i2c = busio.I2C(board.SCL, board.SDA)
print("I2C ok!")
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
print("SPI ok!")