Added blinka test file.

This commit is contained in:
K 2024-10-07 01:14:59 +05:30
parent d8afb80753
commit 9d6f734097
Signed by: notkshitij
GPG Key ID: C5B8BC7530F8F43F

19
blinka-test.py Normal file
View File

@ -0,0 +1,19 @@
import board
import digitalio
import busio
print("Hello, blinka!")
# Try to create a Digital input
pin = digitalio.DigitalInOut(board.D4)
print("Digital IO ok!")
# Try to create an I2C device
i2c = busio.I2C(board.SCL, board.SDA)
print("I2C ok!")
# Try to create an SPI device
spi = busio.SPI(board.SCLK, board.MOSI, board.MISO)
print("SPI ok!")
print("done!")