cd {gopath}/src/github.com/hybridgroup/esp32-at
git pull
git branch arduino-nano33-iot
make clean
* success *
make
* success *
cp build/esp32/* {gopath}/src/tinygo.org/x/drivers/espat/flasher/
cd {gopath}/src/tinygo.org/x/drivers/espat/flasher/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"machine" | |
"time" | |
) | |
var leds = []machine.Pin{machine.LED_RED, machine.LED_GREEN, machine.LED_BLUE} | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ traceroute github.com | |
traceroute to github.com (140.82.118.4), 30 hops max, 60 byte packets | |
1 192.168.1.1 (192.168.1.1) 3.786 ms 3.748 ms 3.732 ms | |
2 211.red-80-58-67.staticip.rima-tde.net (80.58.67.211) 8.468 ms 8.468 ms 8.452 ms | |
3 142.red-80-58-93.staticip.rima-tde.net (80.58.93.142) 21.418 ms 226.red-80-58-95.staticip.rima-tde.net (80.58.95.226) 23.454 ms 23.439 ms | |
4 * * * | |
5 249.red-81-46-3.customer.static.ccgg.telefonica.net (81.46.3.249) 21.318 ms 23.285 ms 23.291 ms | |
6 225.red-81-46-3.customer.static.ccgg.telefonica.net (81.46.3.225) 26.313 ms 21.659 ms 21.616 ms | |
7 46.red-81-46-0.customer.static.ccgg.telefonica.net (81.46.0.46) 25.412 ms 25.008 ms 24.925 ms | |
8 146.red-80-58-87.staticip.rima-tde.net (80.58.87.146) 20.647 ms 22.645 ms 20.589 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// +build gameboyadvance | |
package machine | |
import ( | |
"image/color" | |
"runtime/volatile" | |
"unsafe" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// TinyGo flight stick using analog joystick and 5 buttons | |
// Outputs data via serial port in very simple space-delimited format | |
// End of each line of data has "CR-LF" aka 0x13 0x10 | |
// Each update is sent every 50 ms. | |
package main | |
import ( | |
"image/color" | |
"machine" | |
"strconv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a sensor station that uses a ESP8266 or ESP32 running on the device UART1. | |
// It creates an MQTT connection that publishes a message every second | |
// to an MQTT broker. | |
// | |
// In other words: | |
// Your computer <--> UART0 <--> MCU <--> UART1 <--> ESP8266 <--> Internet <--> MQTT broker. | |
// | |
// You must install the Paho MQTT package to build this program: | |
// | |
// go get -u github.com/eclipse/paho.mqtt.golang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"machine" | |
"time" | |
) | |
var ( | |
nina = machine.UART1 | |
tx = machine.PA22 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
SerialNINAPassthrough - Use esptool to flash the u-blox NINA (ESP32) module | |
Arduino MKR WiFi 1010, Arduino MKR Vidor 4000, and Arduino UNO WiFi Rev.2. | |
Copyright (c) 2018 Arduino SA. All rights reserved. | |
This library is free software; you can redistribute it and/or | |
modify it under the terms of the GNU Lesser General Public | |
License as published by the Free Software Foundation; either | |
version 2.1 of the License, or (at your option) any later version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Utilities for dumping STM32 peripheral registers with tab-completion | |
Based on a script by vampi-the-frog | |
Dependencies: | |
pip install -U cmsis-svd | |
Usage (inside gdb): | |
(gdb) source /path/to/svd-dump.py |
I hereby claim:
- I am deadprogram on github.
- I am deadprogram (https://keybase.io/deadprogram) on keybase.
- I have a public key ASCUefpgQr1kEWJUV04EsX-vGeti97SQCnSUs04CyryjiAo
To claim this, I am signing this object: