We talk the same thing - my link is to same metral's repo.
so first lets make inventory of the available packages
1. currently you are using this one
pyledsign by BrightLedSigns - https://docs.python.org/3.6/reference/ex...nd-binding https://github.com/BrightLedSigns/pyledsign
As far as I can see that's the manifacturer, so that's sort of "official" one. Only available as GitHub repo. I cannot find it on PyPi
2. led_sign by metral - https://github.com/metral/led_sign
That's "unofficial" one, python fork of some Rubi code, as per Readme.md
3. pyledsign, available on PyPi - package with the same name as the "offical" one, but for totaly different sign. It does not support MiniSign. So let's forget it.
Now, the two line display.
1. Did you try with the official package pyledsign to pass some text with new line in it:
2. Now, if you are ready to switch to using metral's unofficial package - he supply the text of the 2 lines as a list, see lines 6,7,8 and 13 in test.py file. However that means to refactor your code as per his example.
so first lets make inventory of the available packages
1. currently you are using this one
pyledsign by BrightLedSigns - https://docs.python.org/3.6/reference/ex...nd-binding https://github.com/BrightLedSigns/pyledsign
As far as I can see that's the manifacturer, so that's sort of "official" one. Only available as GitHub repo. I cannot find it on PyPi
2. led_sign by metral - https://github.com/metral/led_sign
That's "unofficial" one, python fork of some Rubi code, as per Readme.md
Quote:Description: Python fork of Ruby code: https://github.com/pshved/muni-led-sign/
3. pyledsign, available on PyPi - package with the same name as the "offical" one, but for totaly different sign. It does not support MiniSign. So let's forget it.
Now, the two line display.
1. Did you try with the official package pyledsign to pass some text with new line in it:
from pyledsign.minisign import MiniSign mysign = MiniSign(devicetype='sign') # queuemsg queues a message to be sent with the send method mysign.queuemsg(data= 'text on line1\ntext on line2') mysign.sendqueue(device='/dev/ttyUSB0')and also, to supply list, e.g.
from pyledsign.minisign import MiniSign mysign = MiniSign(devicetype='sign') # queuemsg queues a message to be sent with the send method mysign.queuemsg(data= ['text on line1', 'text on line2']) mysign.sendqueue(device='/dev/ttyUSB0')what is the result? Maybe neither of this will work, but let's try
2. Now, if you are ready to switch to using metral's unofficial package - he supply the text of the 2 lines as a list, see lines 6,7,8 and 13 in test.py file. However that means to refactor your code as per his example.