initial commit
This commit is contained in:
commit
7150f1d9e0
70
buttons.csv
Normal file
70
buttons.csv
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
$trigger,Unset
|
||||||
|
$pinky_big,Unset
|
||||||
|
$pinky_s,Unset
|
||||||
|
$pickle,Unset
|
||||||
|
$joy_n_b,Unset
|
||||||
|
$joy_n_r,Unset
|
||||||
|
$joy_n_l,Unset
|
||||||
|
$joy_n_f,Unset
|
||||||
|
$joy_n_p,Unset
|
||||||
|
$pov_b,Unset
|
||||||
|
$pov_r,Unset
|
||||||
|
$pov_l,Unset
|
||||||
|
$pov_f,Unset
|
||||||
|
$trim_b,Unset
|
||||||
|
$trim_r,Unset
|
||||||
|
$trim_l,Unset
|
||||||
|
$trim_f,Unset
|
||||||
|
$ws_b,Unset
|
||||||
|
$ws_r,Unset
|
||||||
|
$ws_l,Unset
|
||||||
|
$ws_f,Unset
|
||||||
|
$com_2,Unset
|
||||||
|
$com_1,Unset
|
||||||
|
$cm_u,Unset
|
||||||
|
$cm_d,Unset
|
||||||
|
$scroll_plus,Unset
|
||||||
|
$scroll_minus,Unset
|
||||||
|
$gear_u,Unset
|
||||||
|
$gear_d,Unset
|
||||||
|
$flaps_u,Unset
|
||||||
|
$flaps_d,Unset
|
||||||
|
$air_u,Unset
|
||||||
|
$air_d,Unset
|
||||||
|
$mode_m1,Unset
|
||||||
|
$mode_m2,Unset
|
||||||
|
$mode_s1,Unset
|
||||||
|
$sw_2_u,Unset
|
||||||
|
$sw_2_d,Unset
|
||||||
|
$sw_1_u,Unset
|
||||||
|
$sw_1_d,Unset
|
||||||
|
$rot_bot_plus,Unset
|
||||||
|
$rot_bot_minus,Unset
|
||||||
|
$rot_top_plus,Unset
|
||||||
|
$rot_top_minus,Unset
|
||||||
|
$sw_4_u,Unset
|
||||||
|
$sw_4_d,Unset
|
||||||
|
$sw_3_u,Unset
|
||||||
|
$sw_3_d,Unset
|
||||||
|
$th_n_b,Unset
|
||||||
|
$th_n_r,Unset
|
||||||
|
$th_n_l,Unset
|
||||||
|
$th_n_f,Unset
|
||||||
|
$th_n_p,Unset
|
||||||
|
$sc_top_minus,Unset
|
||||||
|
$sc_top_p,Unset
|
||||||
|
$sc_top_plus,Unset
|
||||||
|
$sc_bot_minus,Unset
|
||||||
|
$sc_bot_p,Unset
|
||||||
|
$sc_bot_plus,Unset
|
||||||
|
$nottdc_b,Unset
|
||||||
|
$nottdc_u,Unset
|
||||||
|
$nottdc_f,Unset
|
||||||
|
$nottdc_d,Unset
|
||||||
|
$tdc_b,Unset
|
||||||
|
$tdc_u,Unset
|
||||||
|
$tdc_f,Unset
|
||||||
|
$tdc_d,Unset
|
||||||
|
$sld_f,Unset
|
||||||
|
$sld_b,Unset
|
||||||
|
$th_btn_e,Unset
|
|
31
generate.sh
Executable file
31
generate.sh
Executable file
@ -0,0 +1,31 @@
|
|||||||
|
#/usr/bin/env sh
|
||||||
|
|
||||||
|
set -eo pipefail
|
||||||
|
|
||||||
|
if [ "$#" -ne 2 ]; then
|
||||||
|
echo "Usage: $0 <mapping.csv> <image.svg>"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
MAPPING_FILE=$1
|
||||||
|
IMAGE_FILE=$2
|
||||||
|
|
||||||
|
if [ ! -f "$MAPPING_FILE" ]; then
|
||||||
|
echo "$MAPPING_FILE not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ ! -f "$IMAGE_FILE" ]; then
|
||||||
|
echo "$IMAGE_FILE not found!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# awk -F, 'NR==FNR {map[$1] = $2; next} {for (key in map) gsub("\\b" key "\\b", map[key]); print}' $MAPPING_FILE $IMAGE_FILE
|
||||||
|
|
||||||
|
|
||||||
|
awk -F, 'NR==FNR {map[$1] = $2; next} END {for (key in map) print key, "=>", map[key]}' $MAPPING_FILE
|
||||||
|
|
||||||
|
|
||||||
|
# while IFS=, read -r col1 col2 _; do
|
||||||
|
# echo "$col1, $col2"
|
||||||
|
# done < "$MAPPING_FILE`"
|
BIN
mini-stick.jpg
Normal file
BIN
mini-stick.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.0 KiB |
BIN
throttle.png
Normal file
BIN
throttle.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 185 KiB |
740
x56.drawio
Normal file
740
x56.drawio
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user