-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathflash.sh
More file actions
executable file
·31 lines (29 loc) · 1.09 KB
/
Copy pathflash.sh
File metadata and controls
executable file
·31 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env bash
#
# The Keymaker - ESP32 CYD OTP Authenticator
# Copyright (C) 2026 Andrea Benini
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# COMMERCIAL USAGE: If you wish to use this software in a commercial
# product or environment where GPLv3 compliance is not possible,
# please contact the creator of this repository [andreabenini] @ gmail
# for a commercial license.
#
# Simple builder based on current ESP-IDF version
line() {
printf '%*s\r' "${COLUMNS:-$(tput cols)}" '' | tr ' ' -
echo -e "\e[32m[$1] \e[0m"
}
PORT="/dev/ttyUSB0"
echo ""
line "Flashing firmware ($PORT)"
. $HOME/.espressif/v5.5.3/esp-idf/export.sh && idf.py -p $PORT flash