Skip to content

Instantly share code, notes, and snippets.

View tannewt's full-sized avatar

Scott Shawcroft tannewt

View GitHub Profile
xtensa-esp32s2-elf-gcc -DCFG_TUD_TASK_QUEUE_SZ=32 -DCIRCUITPY_FULL_BUILD=0 -DCIRCUITPY_MINIMAL_BUILD=1 -DCIRCUITPY_DEFAULT_BUILD=0 -DCIRCUITPY_ALWAYS_BUILD=1 -DCIRCUITPY_ANALOGIO=0 -DCIRCUITPY_AUDIOBUSIO=0 -DCIRCUITPY_AUDIOIO=0 -DCIRCUITPY_AUDIOIO_COMPAT=0 -DCIRCUITPY_AUDIOPWMIO=0 -DCIRCUITPY_AUDIOCORE=0 -DCIRCUITPY_AUDIOMIXER=0 -DCIRCUITPY_AUDIOMP3=0 -DCIRCUITPY_BITBANGIO=0 -DCIRCUITPY_BLEIO=0 -DCIRCUITPY_BOARD=0 -DCIRCUITPY_BUSIO=0 -DCIRCUITPY_DIGITALIO=0 -DCIRCUITPY_DISPLAYIO=0 -DCIRCUITPY_FRAMEBUFFERIO=0 -DCIRCUITPY_FREQUENCYIO=0 -DCIRCUITPY_GAMEPAD=0 -DCIRCUITPY_GAMEPADSHIFT=0 -DCIRCUITPY_I2CSLAVE=0 -DCIRCUITPY_MATH=1 -DCIRCUITPY__EVE=0 -DCIRCUITPY_MICROCONTROLLER=0 -DCIRCUITPY_NEOPIXEL_WRITE=0 -DCIRCUITPY_NETWORK=0 -DCIRCUITPY_NVM=0 -DCIRCUITPY_OS=0 -DCIRCUITPY_PIXELBUF=0 -DCIRCUITPY_PROTOMATTER=0 -DCIRCUITPY_PULSEIO=0 -DCIRCUITPY_PS2IO=0 -DCIRCUITPY_RANDOM=0 -DCIRCUITPY_ROTARYIO=0 -DCIRCUITPY_RTC=0 -DCIRCUITPY_SAMD=0 -DCIRCUITPY_STAGE=0 -DCIRCUITPY_STORAGE=0 -DCIRCUITPY_STRUCT=1 -DCIRCUITPY_SUPERVISOR=
xtensa-esp32s2-elf-gcc -o build-saola/firmware.elf -DCFG_TUD_TASK_QUEUE_SZ=32 -DCIRCUITPY_FULL_BUILD=0 -DCIRCUITPY_MINIMAL_BUILD=1 -DCIRCUITPY_DEFAULT_BUILD=0 -DCIRCUITPY_ALWAYS_BUILD=1 -DCIRCUITPY_ANALOGIO=0 -DCIRCUITPY_AUDIOBUSIO=0 -DCIRCUITPY_AUDIOIO=0 -DCIRCUITPY_AUDIOIO_COMPAT=0 -DCIRCUITPY_AUDIOPWMIO=0 -DCIRCUITPY_AUDIOCORE=0 -DCIRCUITPY_AUDIOMIXER=0 -DCIRCUITPY_AUDIOMP3=0 -DCIRCUITPY_BITBANGIO=0 -DCIRCUITPY_BLEIO=0 -DCIRCUITPY_BOARD=0 -DCIRCUITPY_BUSIO=0 -DCIRCUITPY_DIGITALIO=0 -DCIRCUITPY_DISPLAYIO=0 -DCIRCUITPY_FRAMEBUFFERIO=0 -DCIRCUITPY_FREQUENCYIO=0 -DCIRCUITPY_GAMEPAD=0 -DCIRCUITPY_GAMEPADSHIFT=0 -DCIRCUITPY_I2CSLAVE=0 -DCIRCUITPY_MATH=1 -DCIRCUITPY__EVE=0 -DCIRCUITPY_MICROCONTROLLER=0 -DCIRCUITPY_NEOPIXEL_WRITE=0 -DCIRCUITPY_NETWORK=0 -DCIRCUITPY_NVM=0 -DCIRCUITPY_OS=0 -DCIRCUITPY_PIXELBUF=0 -DCIRCUITPY_PROTOMATTER=0 -DCIRCUITPY_PULSEIO=0 -DCIRCUITPY_PS2IO=0 -DCIRCUITPY_RANDOM=0 -DCIRCUITPY_ROTARYIO=0 -DCIRCUITPY_RTC=0 -DCIRCUITPY_SAMD=0 -DCIRCUITPY_STAGE=0 -DCIRCUITPY_STORAGE=0 -DCIRCUITPY_STRU
import csv
import datetime
import json
import os
downloads_by_date_by_version = {}
all_versions = set()
all_user_agents = set()
downloads_by_board = {}
versions_to_count = ["5.0.0", "5.1.0"]
@tannewt
tannewt / process_thermal.py
Last active April 21, 2020 17:37
Now with temp printing.
import csv
import struct
import sys
from PIL import Image, ImageDraw
images = []
csv.field_size_limit(sys.maxsize)
@tannewt
tannewt / code.py
Created April 1, 2020 20:55
midi test
"""
This example acts as a keyboard to peer devices.
"""
import time
import random
import adafruit_ble
import adafruit_ble_midi
import adafruit_midi
from adafruit_ble.advertising import Advertisement
@tannewt
tannewt / analyze.py
Created March 26, 2020 19:50
s3 log analyzer
import csv
import datetime
import json
import os
downloads_by_date_by_version = {}
all_versions = set()
all_user_agents = set()
downloads_by_board = {}
versions_to_count = ["5.0.0", "5.0.0-rc.1"]
@tannewt
tannewt / code.py
Created February 5, 2020 19:33
broadcastnet complex sensor
"""This is a complex sensor node that uses the sensors on a Clue and Feather Bluefruit Sense."""
import board
import adafruit_bmp280
import adafruit_sht31d
import adafruit_apds9960.apds9960
import adafruit_lis3mdl
import adafruit_lsm6ds
import adafruit_ble_broadcastnet
import time
env PKG_CONFIG_PATH=/Users/tannewt/sr_macosx/lib/pkgconfig/ pkg-config --debug --modversion libsigrok
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libsigrok'
Looking for package 'libsigrok-uninstalled'
Reading 'libsigrok' from file '/Users/tannewt/sr_macosx/lib/pkgconfig//libsigrok.pc'
Parsing package file '/Users/tannewt/sr_macosx/lib/pkgconfig//libsigrok.pc'
line>prefix=/Users/tannewt/sr_macosx
Variable declaration, 'prefix' has value '/Users/tannewt/sr_macosx'
$ env PKG_CONFIG_PATH=/Users/tannewt/sr_macosx/lib/pkgconfig/ pkg-config --debug --modversion libsigrokdecode
Error printing enabled by default due to use of output options besides --exists, --atleast/exact/max-version or --list-all. Value of --silence-errors: 0
Error printing enabled
Adding virtual 'pkg-config' package to list of known packages
Looking for package 'libsigrokdecode'
Looking for package 'libsigrokdecode-uninstalled'
Reading 'libsigrokdecode' from file '/Users/tannewt/sr_macosx/lib/pkgconfig//libsigrokdecode.pc'
Parsing package file '/Users/tannewt/sr_macosx/lib/pkgconfig//libsigrokdecode.pc'
line>prefix=/Users/tannewt/sr_macosx
Variable declaration, 'prefix' has value '/Users/tannewt/sr_macosx'
$ ./autogen.sh Sun Jan 5 10:14:50 2020
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force -I m4
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoheader --force
autoreconf: running: automake --add-missing --copy --force-missing
Makefile.am: installing './INSTALL'