initial commit

This commit is contained in:
2025-02-23 20:40:38 +01:00
commit a429c81bcb
7 changed files with 293 additions and 0 deletions

15
flashing_time.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python
from subprocess import run
# requires pySerial:
# python -m pip install pyserial
import serial
# grab the port for the seeed nrf52 (only connect one at a time)
data = run("ls /dev/ | grep 'cu.usbmodem'", capture_output=True, shell=True, text=True)
ser = serial.Serial("/dev/" + data.stdout.strip(), 1200)
# send 16 null characters as reset signal to enter the bootloader
ser.write(b"\x00" * 16)
ser.close()