-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
executable file
·91 lines (75 loc) · 2.31 KB
/
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# This 'main' file just imports whatever code I really want to run.
# That is, the main project file or maybe test code.
#
# NOTICE - THIS SOMETIMES DOESNT WORK CORRECTLY! (Particularly for stuff in the 'test' subdir?)
# See 'fallingForever*' :-/
#
# ----------------------------------------------------
import supervisor
supervisor.runtime.autoreload = False # CirPy 8 and above
DO_MAIN_CODE = True
# ----------------------------------------------------
# This runs the main project code:
if DO_MAIN_CODE:
import feathereminMain
print("Featheremin run done.")
while True:
pass
# import board, feathereminDisplay2 as displayClass
# TFT_DISPLAY_CS, TFT_DISPLAY_DC, TFT_DISPLAY_RESET = board.A2, board.A0, board.A1
# display = displayClass.FeathereminDisplay(180, TFT_DISPLAY_CS, TFT_DISPLAY_DC, TFT_DISPLAY_RESET, True)
# print(f"feathereminDisplay2 init OK? {display.init_OK}")
# if display.init_OK:
# display.test() # does not return
# else:
# print("blork! init failed!")
# while True:
# pass
# Other test code, found in ./test directory.
# ----------------------------------------------------
# ----------------------------------------------------
# This lets us run stuff in the 'test' subdirectory:
import sys
sys.path.insert(0, 'test')
import test_gestures2
# SOUND TESTS
# doesn't work in /test dir
# import fallingForever
# import fallingForeverObj as ffo
# ff = ffo.FallingForever()
# ff.test()
# import derpNote
# import eightiesArp
# MISC TESTS OF MINE
#
# import test_display2
# import test_feathereminSynth
# import test_2_L0X_testbed
# import test_VL53L0X
# import test_feathereminDisp
# import test_bitmap
# import test_range_and_sound
# import test_2_L0Xs # currently fails, due to HW issue
# import test_drone_synthio_I2S
# import test_TFT22 # basic display test
# import test_max98357a
# import test_wheel
# import test_neopixel
# no longer around or useful?
# ----------------------------------------------------
# # audio test stuff
# import i2s_test2
# import synthio_rude_noises_cran
# import synthio_tiny_lfo_song_2
# import synthio_tiny_lfo_song
# import simpleRangeSynth
## dumb banner code - not working!
# import banner
# b = banner.Banner()
# b.test("You are a ....")
# print("Fuk")
# while True:
# pass
print("Fell off end of main! No test to run?")
while True:
pass