We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 87ea110 + 64e7c7f commit d8ec773Copy full SHA for d8ec773
examples/seesaw_attiny_simpletest.py
@@ -0,0 +1,18 @@
1
+# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
2
+# SPDX-License-Identifier: MIT
3
+"""
4
+Simple seesaw test for ATtiny8x7 breakout using built-in LED on pin 5.
5
6
+import time
7
+import board
8
+from adafruit_seesaw.seesaw import Seesaw
9
+
10
+ss = Seesaw(board.I2C())
11
12
+ss.pin_mode(5, ss.OUTPUT)
13
14
+while True:
15
+ ss.digital_write(5, False) # Turn the LED on (the built-in LED is active low!)
16
+ time.sleep(1) # Wait for one second
17
+ ss.digital_write(5, True) # Turn the LED off
18
0 commit comments