From 9d6f7340971b6752f193076aa118e60934fa4f13 Mon Sep 17 00:00:00 2001 From: Kshitij Date: Mon, 7 Oct 2024 01:14:59 +0530 Subject: [PATCH] Added blinka test file. --- blinka-test.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 blinka-test.py diff --git a/blinka-test.py b/blinka-test.py new file mode 100644 index 0000000..0454bde --- /dev/null +++ b/blinka-test.py @@ -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!")