Skip to content

Commit

Permalink
Fixing network brightness and alias
Browse files Browse the repository at this point in the history
  • Loading branch information
adammhaile committed Aug 26, 2017
1 parent 4855084 commit ea3455b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bibliopixel/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.3.2
3.3.3
4 changes: 2 additions & 2 deletions bibliopixel/drivers/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def _connect(self):
raise IOError(error)

def _compute_packet(self):
self._render()
count = self.bufByteCount()
self._packet = util.generate_header(CMDTYPE.PIXEL_DATA, count)
indexes = range(self._pos, self._pos + self.numLEDs)
self._packet.extend(int(c) for i in indexes for c in self._colors[i])
self._packet.extend(self._buf)

# Push new data to strand
def _send_packet(self):
Expand Down
4 changes: 2 additions & 2 deletions bibliopixel/drivers/network_udp.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def _connect(self):
raise IOError(error)

def _compute_packet(self):
self._render()
count = self.bufByteCount()
self._packet = util.generate_header(CMDTYPE.PIXEL_DATA, count)
indexes = range(self._pos, self._pos + self.numLEDs)
self._packet.extend(int(c) for i in indexes for c in self._colors[i])
self._packet.extend(self._buf)

# Push new data to strand
def _send_packet(self):
Expand Down
2 changes: 1 addition & 1 deletion bibliopixel/project/alias_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
'image': 'bibliopixel.drivers.image_sequence.ImageSequence',
'lpd8806': 'bibliopixel.drivers.API.LPD8806.LPD8806',
'network': 'bibliopixel.drivers.network.Network',
'network_udp': 'bibliopixel.drivers.network.NetworkUDP',
'network_udp': 'bibliopixel.drivers.network_udp.NetworkUDP',
'serial': 'bibliopixel.drivers.serial.Serial',
'simpixel': 'bibliopixel.drivers.SimPixel.SimPixel',
'ws281x': 'bibliopixel.drivers.API.WS281X.WS281X',
Expand Down

0 comments on commit ea3455b

Please sign in to comment.