Skip to content

Commit

Permalink
Fix device range to be 08-77
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbowman committed Mar 23, 2019
1 parent ab1d921 commit 2f224a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/samples/i2cgui.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def addrbutton(s):
r = wx.RadioButton(self, label = s)
r.Bind(wx.EVT_RADIOBUTTON, self.choose_addr)
return r
self.heat = {i:addrbutton("%02X" % i) for i in range(8, 112)}
self.heat = {i:addrbutton("%02X" % i) for i in range(0x08, 0x78)}
devgrid = wx.GridSizer(8, wx.Size(4, 6))
for i,l in sorted(self.heat.items()):
devgrid.Add(l)
Expand Down

0 comments on commit 2f224a4

Please sign in to comment.