Skip to content

Commit 95c6231

Browse files
committed
Add template example code.
1 parent b832220 commit 95c6231

2 files changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
"""CircuitPython capacitive touch example for Slider Trinkey"""
2+
import time
3+
import board
4+
import touchio
5+
6+
touch = touchio.TouchIn(board.TOUCH)
7+
8+
while True:
9+
if touch.value:
10+
print("Pad touched!")
11+
time.sleep(0.1)
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""CircuitPython NeoPixel Blink Example for Slider Trinkey"""
2+
import time
3+
import board
4+
import neopixel
5+
6+
pixel = neopixel.NeoPixel(board.NEOPIXEL, 2)
7+
8+
while True:
9+
pixel.fill((255, 0, 0))
10+
time.sleep(0.5)
11+
pixel.fill((0, 0, 0))
12+
time.sleep(0.5)

0 commit comments

Comments
 (0)