Skip to content

Instantly share code, notes, and snippets.

View jjsanderson's full-sized avatar

Jonathan Sanderson jjsanderson

View GitHub Profile
@jjsanderson
jjsanderson / pt100reg.py
Created October 12, 2024 21:15 — forked from anonymous/pt100reg.py
PT100Reg - allows you to create a registration key for the PT100 terminal emulator for Newton
maxUnsigned = 0x1FFFFFFF
bitsInUnsigned = int(29)
seventyFivePercent = int(22)
twelvePercent = int(4)
highBits = 0x1E000000
lowBits = 0x01FFFFFF
def generateRegCode(userName):
reg = ""
sn = ""