You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
503 B
26 lines
503 B
6 years ago
|
flash_over_usb() {
|
||
|
sleep 1s
|
||
|
|
||
|
dfu-programmer ${MCU} erase
|
||
|
dfu-programmer ${MCU} flash "${HEX_FILE_PATH}"
|
||
|
dfu-programmer ${MCU} start
|
||
|
}
|
||
|
|
||
|
flash () {
|
||
|
prepare_to_flash
|
||
|
|
||
|
# This is defined in the (optional) user config.
|
||
|
# shellcheck disable=SC2154
|
||
|
${preFlash_HOOKS}
|
||
|
|
||
|
flash_over_usb || flash_over_usb
|
||
|
|
||
|
# This is defined in the (optional) user config.
|
||
|
# shellcheck disable=SC2154
|
||
|
${postFlash_HOOKS}
|
||
|
}
|
||
|
|
||
|
NO_RESET=1
|
||
|
DEFAULT_SKETCH="Splitography"
|
||
|
BOARD="splitography"
|