Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bigjosh committed Jan 31, 2025
2 parents edd5f86 + ea5fab2 commit a8f21aa
Show file tree
Hide file tree
Showing 17 changed files with 69,629 additions and 2 deletions.
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
MIT License

Copyright 2023 Elliot Williams
Copyright 2023 Voja Antonic
Copyright 2023 Al Williams
Copyright 2023 Tom Nardi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69,567 changes: 69,567 additions & 0 deletions hardware/thumbstick/Badge_2023_Thumbstick_v1.0.step

Large diffs are not rendered by default.

Binary file added hardware/thumbstick/Badge_2023_Thumbstick_v1.stl
Binary file not shown.
10 changes: 10 additions & 0 deletions hardware/thumbstick/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
MIT License

Copyright 2023 Giovanni Salinas

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

8 changes: 8 additions & 0 deletions images/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Here you'll find some `uf2` images that you can copy directly to the badge when it's mounted in bootloader / USB-disk mode. (Hold the Pico's boot button while plugging in.)

The images in micropython_compiled/ are a preview version of v1.22.0, with a driver for the GC9A01 screen and pull release for DMA support compiled in. This is here really just in case you want to play around, or if you've soldered on a Pico W, which requires its own firmware.

The Supercon image includes our modified Micropython and all of the various python code that makes it run.

Note that flashing the Supercon `uf2` will probably wipe anything you have on the device, so save your work first. Heck, save your work right now anyway. You never know!

Binary file not shown.
Binary file added images/hackaday_europe_2024_image.uf2
Binary file not shown.
File renamed without changes.
28 changes: 28 additions & 0 deletions source/flash
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#!/bin/bash
while true
do
sleep 1
if [ -e /dev/ttyACM0 ]
then
echo "Flashing"
mpremote cp supercon_menu.py :
mpremote cp splash_2024.jpg :
mpremote cp splash_europe.jpg :
mpremote cp vectorscope.py :
mpremote reset
echo "###############################################"
echo "## Thank you for using the Hackaday Flasher! ##"
echo "###############################################"
echo ""
## wait for device to reattach tty
sleep 1
## twirl in loop until it gets pulled again
echo "Waiting for the next badge..."
while [ -e /dev/ttyACM0 ]
do
sleep 1
true
done
fi
done

1 change: 1 addition & 0 deletions source/planets.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def joycb(key):
update_timer()
if (key==keyleds.JOY_RT):
oldpause=pauseflag
update_timer() # reset auto-advance timer
pauseflag=False # make sure it redraws
next()
pauseflag=oldpause
Expand Down
Binary file added source/splash_2024.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/splash_europe.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion source/supercon_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ async def vos_main():
machine.Pin(22, machine.Pin.OUT).toggle()

screen=vectoros.get_screen()
splashes = ["splash_x.jpg", "splash_7.jpg", "splash_wrencher.jpg"]
splashes = ["splash_europe.jpg", "splash_2024.jpg", "splash_wrencher.jpg"]
screen.jpg(random.choice(splashes))
await asyncio.sleep_ms(1000)

Expand Down
2 changes: 1 addition & 1 deletion source/vectorscope.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Vectorscope():
def __init__(self, screen_running = False):

## Couple buttons if you want to play with them
self.audio_shutdown_pin = machine.Pin(pin_defs.audio_shutdown, machine.Pin.OUT, value=1)
# self.audio_shutdown_pin = machine.Pin(pin_defs.audio_shutdown, machine.Pin.OUT, value=1)
self.user_button = machine.Pin(pin_defs.user_button, machine.Pin.IN)

## Turn up the heat!
Expand Down

0 comments on commit a8f21aa

Please sign in to comment.