-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.py
51 lines (40 loc) · 954 Bytes
/
Main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#CP LIB set up
import time
from adafruit_circuitplayground.express import cpx
#call neopixel lib
#call speaker lib
#call accelerometer lib
#number of skin layers
#layer_a set up
import digitalio
import board
layer_a = digitalio.DigitalInOut(board.BUTTON_A)
layer_a.direction = digitalio.Direction.INPUT
#layer_b set up
import digitalio
import board
layer_b = digitalio.DigitalInOut(board.BUTTON_A)
layer_b.direction = digitalio.Direction.INPUT
#layer_c set up
import digitalio
import board
layer_c = digitalio.DigitalInOut(board.BUTTON_A)
layer_c.direction = digitalio.Direction.INPUT
#heart kill spot set up
import digitalio
import board
heart = digitalio.DigitalInOut(board.BUTTON_A)
heart.direction = digitalio.Direction.INPUT
#pain function
def pain():
print("pain")
#agony function
def agony():
print("agony")
#death function
def death():
print("death")
#main code loop
while True:
print("alive")
#normal face