Page 2 of 2

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Sat Feb 02, 2019 18:03
by VanessaE
Don't assign channels to the other panels -- just to the leftmost one. You can dig and re-place the others to erase their channels. Send your whole message just once to the leftmost panel's channel, and the code will spread the message across all the panels. That panel becomes the "master", the others to its right are slaved to it.

Send the scroll commands just once, to that same channel. The code will automatically scroll all of the panels repeatedly, at the speed set by the scroll_speed command.

Try this:

Place a panel, give it channel name "foo". Place a bunch more to the right of it, in a line. Make sure they all face the same way, and do not give them channels.

Send these commands to that leftmost panel:

Code: Select all
digiline_send("foo", "clear")
digiline_send("foo", "this is a test string")
digiline_send("foo", "start_scroll")
digiline_send("foo", "scroll_speed 0.5")


There's a more detailed example under "More screenshots" in the opening post.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Sat Feb 02, 2019 18:14
by minetest-user
VanessaE wrote:Don't assign channels to the other panels -- just to the leftmost one. You can dig and re-place the others to erase their channels. Send your whole message just once to the leftmost panel's channel, and the code will spread the message across all the panels. That panel becomes the "master", the others to its right are slaved to it.

Send the scroll commands just once, to that same channel. The code will automatically scroll all of the panels repeatedly, at the speed set by the scroll_speed command.

Try this:

Place a panel, give it channel name "foo". Place a bunch more to the right of it, in a line. Make sure they all face the same way, and do not give them channels.

Send these commands to that leftmost panel:

Code: Select all
digiline_send("foo", "clear")
digiline_send("foo", "this is a test string")
digiline_send("foo", "start_scroll")
digiline_send("foo", "scroll_speed 0.5")


There's a more detailed example under "More screenshots" in the opening post.


Thanks for help!

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Thu Feb 07, 2019 19:23
by Phoenixflo44
Is there also a guide here for stupid ones like me?

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Thu Feb 07, 2019 19:34
by VanessaE
The first post has all the details.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Thu Feb 07, 2019 19:50
by Phoenixflo44
And I don't understand those details. Never knew me with mesecon's commands.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Thu Feb 07, 2019 20:16
by VanessaE
Well, like my Nixie Tube mod, this is only intended to be used with Digilines, so you'll need to learn a bit of Lua and how to use Lua Controllers to send Digilines commands.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Sat Feb 09, 2019 18:46
by Phoenixflo44
Thank you for this help. I had already faulted the helpfulness of this community. And for me to learn something, you have to explain it more often. But I didn't return to listen to such a garbage.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Sat Feb 09, 2019 22:24
by v-rob
Phoenixflo44 wrote:Thank you for this help. I had already faulted the helpfulness of this community. And for me to learn something, you have to explain it more often.


So, since you're having some trouble using digilines with this mod, let me see if I can help. I'll put it in a spoiler because of all the screenshots.

+ Basic Tutorial

+ Other Stuff


Anyway, there are a few other things, but they are much harder to teach, and you'd need to know a bit of Lua to do them. If you do know Lua or learn it sometime, I'd be glad to teach you the rest of them.

I hope this helps you. If you have any questions, feel free to ask.

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Sat Feb 09, 2019 22:32
by VanessaE
Thanks for posting that tutorial. Nice work, I couldn't have done it better myself. :-)

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Mon May 13, 2019 15:52
by Miniontoby
How do you did this "v-rob"?
Image

Re: [Mod] Digilines LED marquee [git][led_marquee]

PostPosted: Mon May 13, 2019 23:40
by v-rob
The ascii character used was 144, so to print this character, you have to do something like this:

digiline_send("screen", char(144))

Notice how there are no quotes around char(144).

You can use more character codes other than 144, and these are in the first post about halfway down the "Detailed usage..." spoiler in the first page.

Now, to put this in with other text, use .. between the text and the char(144), like so:

digiline_send("screen", "Some "..char(144).." Text")

This would give you Some █ Text.

Then, just put the color codes and char(144) all together. Therefore:

Code: Select all
digiline_send("screen", "/0"..char(144).."/1"..char(144).."/2"..char(144).."/3"..char(144).."/4"..char(144).."/5"..char(144).."/6"..char(144).."/7"..char(144).."/8"..char(144).."/9"..char(144).."/a"..char(144).."/b"..char(144).."/c"..char(144).."/d"..char(144).."/e"..char(144).."/f"..char(144).."/g"..char(144).."/h"..char(144).."/i"..char(144).."/j"..char(144).."/k"..char(144).."/l"..char(144).."/m"..char(144).."/n"..char(144).."/o"..char(144).."/p"..char(144).."/q"..char(144).."/r"..char(144))

gives you what is on the screen.

To be honest, though, I used a loop, but that requires Lua knowledge.