added hardware board software and PC control guide

This commit is contained in:
2026-03-02 19:21:00 +01:00
parent 6775b5abec
commit c9d16c4a9b
6 changed files with 416 additions and 29 deletions

18
Software/sTimer.py Normal file
View File

@@ -0,0 +1,18 @@
from machine import Timer
import TMC2130
FREQUENCY = 100 #kHz
counter = 0
sTim = Timer()
def sTim_callback(t):
global counter
counter += 1
TMC2130.timer_callback(counter)
def sTimer_Start():
sTim.init(freq=FREQUENCY*1000, mode=Timer.PERIODIC, callback=sTim_callback)
def sTimer_Stop():
sTim.deinit()