Skip to content

Commit

Permalink
Merge pull request #86 from kattni/simpletest
Browse files Browse the repository at this point in the history
Adding ATtiny simpletest.
  • Loading branch information
kattni committed Oct 13, 2021
2 parents 87ea110 + 64e7c7f commit d8ec773
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions examples/seesaw_attiny_simpletest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# SPDX-FileCopyrightText: 2021 Kattni Rembor for Adafruit Industries
# SPDX-License-Identifier: MIT
"""
Simple seesaw test for ATtiny8x7 breakout using built-in LED on pin 5.
"""
import time
import board
from adafruit_seesaw.seesaw import Seesaw

ss = Seesaw(board.I2C())

ss.pin_mode(5, ss.OUTPUT)

while True:
ss.digital_write(5, False) # Turn the LED on (the built-in LED is active low!)
time.sleep(1) # Wait for one second
ss.digital_write(5, True) # Turn the LED off
time.sleep(1) # Wait for one second

0 comments on commit d8ec773

Please sign in to comment.