Toggle Navigation
Hatchery
Eggs
updi_test
__init__.py
Users
Badges
Login
Register
MCH2022 badge?
go to mch2022.badge.team
__init__.py
raw
Content
from updi_test.device import Device from updi_test.nvm import UpdiNvmProgrammer pins = (18, 19) # RX, TX baudrate = 115200 device = Device("tiny1617") nvm = UpdiNvmProgrammer(pins, baudrate, device) # Read fuses (from _read_fuses in original program) print("Fuse:Value") for fusenum in range (0,11): # This range should probably be defined for each chip fuseval=nvm.read_fuse(fusenum) print("{0}:0x{1:02X}".format(fusenum,fuseval))