misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-14 19:35:49 +02:00
parent 9f66d7ab96
commit 5b29f65042
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -85,7 +85,7 @@ def waveshare(config, layout):
layout['face'] = (0, 40)
layout['name'] = (5, 20)
layout['channel'] = (0, 0)
layout['aps'] = (25, 0)
layout['aps'] = (28, 0)
layout['uptime'] = (layout['width'] - 65, 0)
layout['line1'] = [0, int(layout['height'] * .12), layout['width'], int(layout['height'] * .12)]
layout['line2'] = [0, layout['height'] - int(layout['height'] * .12), layout['width'],
@ -103,7 +103,7 @@ def waveshare(config, layout):
layout['face'] = (0, int(layout['height'] / 4))
layout['name'] = (5, int(layout['height'] * .15))
layout['channel'] = (0, 0)
layout['aps'] = (25, 0)
layout['aps'] = (28, 0)
layout['status'] = (int(layout['width'] / 2) - 15, int(layout['height'] * .15))
layout['uptime'] = (layout['width'] - 65, 0)
layout['line1'] = [0, int(layout['height'] * .12), layout['width'], int(layout['height'] * .12)]