Skip to content

Instantly share code, notes, and snippets.

View deadprogram's full-sized avatar
💭
Currently available for work. Let's talk!

Ron Evans deadprogram

💭
Currently available for work. Let's talk!
View GitHub Profile
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:

@deadprogram
deadprogram / go-uf2.go
Last active September 7, 2026 11:54
Converts a .BIN firmware file to a .UF2 file
// Converts firmware files from BIN to UF2 format before flashing.
//
// For more information about the UF2 firmware file format, please see:
// https://github.com/Microsoft/uf2
//
package main
import (
"fmt"
"io/ioutil"
@deadprogram
deadprogram / flash-esp8266.sh
Created January 30, 2019 07:56
Script to flash ESP8266 with updated version of the official AT command set firmware.
#!/bin/sh
SPToolDir="$HOME/.local/lib/python2.7/site-packages"
FirmwareDir="$HOME/ESP8266_NONOS_SDK"
cd "$SPToolDir"
port=/dev/ttyUSB0
if [ ! -c $port ]; then
port=/dev/ttyUSB0
fi
if [ ! -c $port ]; then
echo "No device appears to be plugged in. Stopping."
// This is a console to a ESP8266 running on the device UART1.
// Allows you to type AT commands from your computer via the microcontroller.
//
// In other words:
// Your computer <--> UART0 <--> MCU <--> UART1 <--> ESP8266
//
// More information on the Espressif AT command set at:
// https://github.com/espressif/ESP8266_AT/wiki
//
package main
@deadprogram
deadprogram / mdktest.c
Last active December 11, 2018 10:20
TinyGo with CGo including MDK
#include "nrf.h"
#include "mdktest.h"
int mdk_major_version()
{
return MDK_MAJOR_VERSION;
}
int mdk_minor_version()
{
// What it does:
//
// This example uses a deep neural network to perform background blurring somewhat like Microsoft Teams does.
// You can see the faces of meeting participants, but not the background, for privacy during videoconferences.
//
// It can be used with either the Caffe face tracking or Tensorflow object detection models that are
// included with OpenCV 4.0
//
// To perform blurring with the Caffe model:
//