Skip to content

Instantly share code, notes, and snippets.

@astropika
astropika / main.py
Last active August 26, 2024 16:40
Micropython TMC2130 control script for a simple variable speed turntable, used on an ESP32. Docs for registry values at https://www.trinamic.com/fileadmin/assets/Products/ICs_Documents/TMC2130_datasheet.pdf
import machine
from machine import Pin, SPI, PWM, ADC
import time
import struct
import sys
# for use with TMC2130
led = Pin(13, Pin.OUT)
enable = Pin(32, Pin.OUT)
@AnnoyingTechnology
AnnoyingTechnology / Apple's SuperDrive tweak for use with Linux.md
Last active September 10, 2024 13:17
Make Apple's USB SuperDrive work on Linux

I was ready to throw it away, I opened it up and didn't find anything wrong with it. After a quick Google Search, turns out Apple fucked up their users (again) and locked this drive to only one laptop : the MacBook Air.

Bellow is the tweak (found online) to make it usable on Linux

# Debian/linux only - Linux SCSI generic driver
sudo apt install sg3-utils -y