-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #86 from kattni/simpletest
Adding ATtiny simpletest.
- Loading branch information
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |