-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add in some halloween node code and memory analysis. (#16)
- Loading branch information
1 parent
c6788cc
commit fe69134
Showing
25 changed files
with
493 additions
and
112 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
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+200 Bytes
(100%)
halloween/2024/3d_models/ultrasonic/Small Ultrasonic Box.stl
Binary file not shown.
Binary file modified
BIN
+3.32 KB
(100%)
halloween/2024/3d_models/ultrasonic/Ultrasonic Box Plugs.stl
Binary file not shown.
Binary file not shown.
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
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,30 @@ | ||
# Perform import of configuration here to allow for overrides from the config file. | ||
from interactive.configuration import * | ||
from interactive.interactive import Interactive | ||
|
||
|
||
async def stop_display() -> None: | ||
pass | ||
|
||
|
||
async def start_display() -> None: | ||
pass | ||
|
||
|
||
async def run_display() -> None: | ||
pass | ||
|
||
|
||
config = get_node_config(button=False, buzzer=False) | ||
config.trigger_start = start_display | ||
config.trigger_run = run_display | ||
config.trigger_stop = stop_display | ||
|
||
interactive = Interactive(config) | ||
|
||
|
||
async def callback() -> None: | ||
pass | ||
|
||
|
||
interactive.run(callback) |
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 |
---|---|---|
@@ -1,45 +0,0 @@ | ||
# Entry point for a spiders node. | ||
|
||
from interactive.environment import are_pins_available | ||
from interactive.interactive import Interactive | ||
from interactive.log import set_log_level, info, INFO | ||
|
||
BUTTON_PIN = None | ||
BUZZER_PIN = None | ||
BUZZER_VOLUME = 0.1 | ||
|
||
# Default settings | ||
if are_pins_available(): | ||
# noinspection PyPackageRequirements | ||
import board | ||
|
||
BUTTON_PIN = board.GP27 | ||
BUZZER_PIN = board.GP2 | ||
|
||
if __name__ == '__main__': | ||
|
||
set_log_level(INFO) | ||
|
||
# Try loading local device settings as overrides. | ||
try: | ||
# noinspection PyPackageRequirements | ||
from config import * | ||
|
||
info("Config file loaded") | ||
|
||
except ImportError: | ||
info("No config file was found") | ||
|
||
config = Interactive.Config() | ||
config.buzzer_pin = BUZZER_PIN | ||
config.button_pin = BUTTON_PIN | ||
config.buzzer_volume = BUZZER_VOLUME | ||
|
||
interactive = Interactive(config) | ||
|
||
|
||
async def callback() -> None: | ||
pass | ||
|
||
|
||
interactive.run(callback) | ||
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
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
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
Oops, something went wrong.