Skip to content

Instantly share code, notes, and snippets.

View astuder's full-sized avatar

Adrian Studer astuder

View GitHub Profile
@astuder
astuder / gist:0790a04b7b5a22c8223508fc41222348
Created March 17, 2025 18:22
Swarm Technologies TILE01 SX1278 init sequence
SPI commands sent to a Semtech SX1278 radio SoC during initialization, as captured from a Swarm Technologies TILE01.
c0 ff c1 f0 RegDioMapping1+2: no function on DIO pins
81 80 Lora Mode, device mode -> sleep
01 00 42 00 09 00 06 00 07 00 08 00 read some reg values
89 00 set PA at min power
86 22 87 75 88 d7 set frequency 137.84MHz
3b 00 bb 5d 3b 00 RegInvertIQ2: ???
89 4f set PA mid-level
86 6c 87 80 88 00 set frequency to default (433MHz)
@astuder
astuder / st1rx.py
Last active September 10, 2024 20:55
Seatalk1 receiver for Raspberry Pi based on gpiod
# Seatalk1 receiver for Raspberry Pi
# This script supports gpiod 1.x and 2.x, tested with 1.6.3 and 2.2.1
# This script was tested with Raspberry Pi OS Bookworm on Rasperry Pi 4 and Raspberry Pi 5
# This script was tested with Raspian Bullseye on Raspberry Pi 3
#
# Copyright 2024 Adrian Studer
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at