Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions adafruit_avrprog.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,13 @@ def write_fuses(self, chip, low=None, high=None, ext=None, lock=None):
"""
self.begin(clock=_SLOW_CLOCK)
lock and self._transaction((0xAC, 0xE0, 0, lock))
self._busy_wait()
low and self._transaction((0xAC, 0xA0, 0, low))
self._busy_wait()
high and self._transaction((0xAC, 0xA8, 0, high))
self._busy_wait()
ext and self._transaction((0xAC, 0xA4, 0, ext))
self._busy_wait()
self.end()

# pylint: enable=unused-argument,expression-not-assigned
Expand Down