name = 'ADNS-5020'
longname = 'Avago ADNS-5020 optical mouse sensor'
desc = 'Bidirectional command and data over an SPI-like protocol.'
- license = 'gplv2'
+ license = 'gplv2+'
inputs = ['spi']
outputs = ['adns5020']
annotations = (
if reg > 0x63:
reg_desc = 'Unknown'
if write:
- self.putx([1, ['%s=>%#x' % (reg_desc, arg)]])
+ self.putx([1, ['%s: %#x' % (reg_desc, arg)]])
else:
- self.putx([0, ['%s<=%d' % (reg_desc, arg)]])
+ self.putx([0, ['%s: %d' % (reg_desc, arg)]])
self.mosi_bytes = []