We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b832220 commit 95c6231Copy full SHA for 95c6231
2 files changed
Slider_Trinkey/Capacitive_Touch/code.py
@@ -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)
Slider_Trinkey/NeoPixel_Blink/code.py
@@ -0,0 +1,12 @@
+"""CircuitPython NeoPixel Blink Example for Slider Trinkey"""
+import neopixel
+pixel = neopixel.NeoPixel(board.NEOPIXEL, 2)
+ pixel.fill((255, 0, 0))
+ time.sleep(0.5)
+ pixel.fill((0, 0, 0))
12
0 commit comments