running on pi 3 on two matrices, setup added

This commit is contained in:
Neythen 2021-05-04 21:55:28 +01:00
parent 2cc0797df9
commit 4c01e0ee2c
3 changed files with 7 additions and 7 deletions

BIN
final.ppm

Binary file not shown.

View File

@ -44,7 +44,7 @@ class StockTicker():
options = RGBMatrixOptions() options = RGBMatrixOptions()
options.rows = 32 options.rows = 32
options.cols = 64 options.cols = 64
options.chain_length = 1 options.chain_length = 2
options.parallel = 1 options.parallel = 1
options.hardware_mapping = 'adafruit-hat' # If you have an Adafruit HAT: 'adafruit-hat' options.hardware_mapping = 'adafruit-hat' # If you have an Adafruit HAT: 'adafruit-hat'
options.gpio_slowdown = 3 options.gpio_slowdown = 3
@ -129,11 +129,11 @@ class StockTicker():
break break
elif msg == 's': elif msg == 's':
stock_ticker.delay = 0.04 stock_ticker.delay = 0.03
elif msg == 'm': elif msg == 'm':
stock_ticker.delay = 0.02
elif msg == 'f':
stock_ticker.delay = 0.01 stock_ticker.delay = 0.01
elif msg == 'f':
stock_ticker.delay = 0.005
elif msg in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']: elif msg in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']:
self.brightness = min(1.0, float(msg)/10 + 0.1) self.brightness = min(1.0, float(msg)/10 + 0.1)
@ -350,11 +350,11 @@ if __name__ == '__main__':
elif msg == 's': elif msg == 's':
stock_ticker.delay = 0.04 stock_ticker.delay = 0.03
elif msg == 'm': elif msg == 'm':
stock_ticker.delay = 0.02
elif msg == 'f':
stock_ticker.delay = 0.01 stock_ticker.delay = 0.01
elif msg == 'f':
stock_ticker.delay = 0.005
elif msg in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']: elif msg in ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']:
stock_ticker.brightness = min(1.0, float(msg)/10 + 0.1) stock_ticker.brightness = min(1.0, float(msg)/10 + 0.1)