Skip to content

Commit

Permalink
reset and bootloader per half, and update script
Browse files Browse the repository at this point in the history
  • Loading branch information
NikodemMarek committed Dec 2, 2023
1 parent 47f44a1 commit 8204071
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/cradio.keymap
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
bindings = <
&none &none &tog 5 &tog 4 &tog 8 &none &none &none &none &none
&sk LEFT_ALT &sk LEFT_GUI &sk LEFT_SHIFT &sk LEFT_CONTROL &sk RIGHT_ALT &none &none &none &none &none
&none &to 6 &to 7 &to 0 &ctrl_shift &none &none &none &none &none
&none &to 6 &to 7 &to 0 &none &none &none &none &none &none
&none &none &none &none
>;

Expand Down Expand Up @@ -199,10 +199,10 @@

special {
bindings = <
&none &kp K_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &none &bootloader &sys_reset &none &ext_power EP_TOG &bt BT_CLR
&kp K_STOP &kp K_PREVIOUS &kp K_PLAY_PAUSE &kp K_NEXT &none &none &none &none &none &none
&none &none &none &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
&tog 8 &trans &trans &trans
&none &kp K_MUTE &kp C_VOLUME_DOWN &kp C_VOLUME_UP &bootloader &bootloader &none &none &ext_power EP_TOG &bt BT_CLR
&kp K_STOP &kp K_PREVIOUS &kp K_PLAY_PAUSE &kp K_NEXT &sys_reset &sys_reset &none &none &none &none
&none &none &none &none &none &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4
&tog 8 &trans &trans &trans
>;

label = "special";
Expand Down
13 changes: 13 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

unzip -o -q .tmp/firmware.zip -d .tmp/

mkdir .tmp/nicenano/
sudo mount /dev/sda .tmp/nicenano/

sudo rm -f .tmp/nicenano/CURRENT.UF2
sudo cp $(find .tmp -name *left*) .tmp/nicenano/CURRENT.UF2

sudo umount .tmp/nicenano/

rm -rf .tmp/*

0 comments on commit 8204071

Please sign in to comment.