- wget "http://www.atmel.com/images/avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe"
- 7z x avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe
- rm avr8-gnu-toolchain-installer-3.5.4.91-win32.any.x86.exe
+ wget "http://ww1.microchip.com/downloads/en/DeviceDoc/avr8-gnu-toolchain-3.6.1.1752-win32.any.x86.zip"
+ echo "Extracting AVR toolchain..."
+ unzip -q avr8-gnu-toolchain-3.6.1.1752-win32.any.x86.zip
+ mv avr8-gnu-toolchain-win32_x86/ avr8-gnu-toolchain
+ rm __MACOSX -R
+ rm avr8-gnu-toolchain-3.6.1.1752-win32.any.x86.zip
+ pacman --needed -S mingw-w64-x86_64-avrdude
+}
+
+function install_arm {
+ wget -O gcc-arm-none-eabi.zip "https://developer.arm.com/-/media/Files/downloads/gnu-rm/6-2017q2/gcc-arm-none-eabi-6-2017-q2-update-win32.zip?product=GNU%20ARM%20Embedded%20Toolchain,ZIP,,Windows,6-2017-q2-update"
+ unzip -d gcc-arm-none-eabi gcc-arm-none-eabi.zip
+ rm gcc-arm-none-eabi.zip
+}
+
+function extract_flip {
+ rm -f -r flip
+ 7z -oflip x FlipInstaller.exe