Skip to content

Instantly share code, notes, and snippets.

View mcauser's full-sized avatar

Mike Causer mcauser

View GitHub Profile
@mcauser
mcauser / tinys2_ips_cpy_demo.py
Last active October 15, 2021 02:24
UM TinyS2+IPS CircuitPython eg
# UM TinyS2 + RGB IPS Display Shield CircuitPython example
# https://unexpectedmaker.com/tinys2
# https://www.tinypico.com/add-ons
# https://circuitpython.org/board/unexpectedmaker_tinys2/
# https://github.com/adafruit/Adafruit_CircuitPython_ST7735
# The IPS display has pins labelled for TinyPICO.
# These are the matching TinyS2 pins.
# check device is responding
AT
# verbose logging
AT+LOG=DEBUG
# switch to AU915
AT+DR=AU915
# before 2022-11-17
// My Functions > Add a core function
// name: Mappers Decoder
// based on https://github.com/hkicko/CubeCell-GPS-Helium-Mapper
function Decoder(bytes, port) {
var decoded = {};
var latitude = ((bytes[0]<<16)>>>0) + ((bytes[1]<<8)>>>0) + bytes[2];
latitude = (latitude / 16777215.0 * 180) - 90;
var longitude = ((bytes[3]<<16)>>>0) + ((bytes[4]<<8)>>>0) + bytes[5];
@mcauser
mcauser / au915_vs_as923.md
Last active April 22, 2025 00:45
AU915 vs AS923