Skip to content

Instantly share code, notes, and snippets.

View deadprogram's full-sized avatar
💭
Upcoming availability for work.

Ron Evans deadprogram

💭
Upcoming availability for work.
View GitHub Profile
$ 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
// +build gameboyadvance
package machine
import (
"image/color"
"runtime/volatile"
"unsafe"
)
// 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 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
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/
package main
import (
"machine"
"time"
)
var (
nina = machine.UART1
tx = machine.PA22
/*
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.
@deadprogram
deadprogram / svd-dump.py
Created June 23, 2019 09:59 — forked from devanlai/svd-dump.py
gdb script for dumping STM32 registers
"""
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
@deadprogram
deadprogram / keybase.md
Created March 19, 2019 18:45
keybase.md

Keybase proof

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: