raspberry pi zero based drum machine
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.

blinka_test.py 387B

123456789101112131415161718192021
  1. import board
  2. import digitalio
  3. import busio
  4. print("Hello blinka!")
  5. # Try to great a Digital input
  6. pin = digitalio.DigitalInOut(board.D4)
  7. print("Digital IO ok!")
  8. # Try to create an I2C device
  9. i2c = busio.I2C(board.SCL, board.SDA)
  10. print("I2C ok!")
  11. # Try to create an SPI device
  12. spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
  13. print("SPI ok!")
  14. print("done!")
  15. print(dir(board.pin))