Skip to content

Instantly share code, notes, and snippets.

View deividaspetraitis's full-sized avatar

Deividas Petraitis deividaspetraitis

View GitHub Profile
@deividaspetraitis
deividaspetraitis / flash.sh
Created July 10, 2022 09:44 — forked from nicinabox/flash.sh
Find the Pro Micro serial port automatically and flash it
#!/bin/bash
# Usage
# ./flash.sh path/to/your.hex
TARGET=$1
ls /dev/tty* > /tmp/1
echo "Reset your Pro Micro now"
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install gcc autoconf bison flex libtool make libboost-all-dev libcurl4-openssl-dev curl libevent-dev uuid-dev
cd ~
wget https://launchpad.net/gearmand/1.2/1.1.12/+download/gearmand-1.1.12.tar.gz