Skip to content

Instantly share code, notes, and snippets.

@shadowandy
shadowandy / 00-button
Created October 26, 2015 02:34 — forked from jefferyto/00-button
Switching network configurations on a TP-Link TL-MR3020 with OpenWrt (12.09 Attitude Adjustment) using the sliding switch. Based on the sample scripts at: https://forum.openwrt.org/viewtopic.php?pid=172111#p172111 and https://forum.openwrt.org/viewtopic.php?pid=172110#p172110
# based on
# https://dev.openwrt.org/browser/trunk/target/linux/atheros/base-files/etc/hotplug.d/button/00-button
# https://forum.openwrt.org/viewtopic.php?pid=172110#p172110
. /lib/functions.sh
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
do_button () {
local button
@shadowandy
shadowandy / platform.txt
Last active February 9, 2023 10:20
Using esptool for Arduino IDE
Just open platform.txt located at
/Users/$USER/Library/Arduino15/packages/esp8266/hardware/esp8266/1.6.5-947-g39819f0/platform.txt
and move to the end of file. Then you will see this line.
tools.esptool.upload.pattern="{path}/{cmd}" {upload.verbose} -cd {upload.resetmethod} -cb {upload.speed} -cp "{serial.port}" -ca 0x00000 -cf "{build.path}/{build.project_name}.bin"
Change it like this way