sphinx fix

This commit is contained in:
sommersoft 2018-03-04 22:00:38 -06:00
parent 2cdee4a243
commit 598f180e5c

View file

@ -55,15 +55,15 @@ _SLOW_CLOCK = 100000
_FAST_CLOCK = 1000000 _FAST_CLOCK = 1000000
class AVRprog: class AVRprog:
"""
Initialize the programmer with an SPI port that will be used to
communicate with the chip. Make sure your SPI supports 'write_readinto'
Also pass in a reset pin that will be used to get into programming mode
"""
_spi = None _spi = None
_rst = None _rst = None
def init(self, spi_bus, rst_pin): def init(self, spi_bus, rst_pin):
"""
Initialize the programmer with an SPI port that will be used to
communicate with the chip. Make sure your SPI supports 'write_readinto'
Also pass in a reset pin that will be used to get into programming mode
"""
self._spi = spi_bus self._spi = spi_bus
self._rst = DigitalInOut(rst_pin) self._rst = DigitalInOut(rst_pin)
self._rst.direction = Direction.OUTPUT self._rst.direction = Direction.OUTPUT