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

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

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.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

minetest-user
New member
Posts: 3
Joined: Sat Feb 02, 2019 17:24

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

by minetest-user » Post

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!

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

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

by Phoenixflo44 » Post

Is there also a guide here for stupid ones like me?
Spoiler
I hate my life

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

The first post has all the details.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

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

by Phoenixflo44 » Post

And I don't understand those details. Never knew me with mesecon's commands.
Spoiler
I hate my life

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

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.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

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

by Phoenixflo44 » Post

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.
Spoiler
I hate my life

User avatar
v-rob
Developer
Posts: 969
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

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

by v-rob » Post

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.
Spoiler
First, you need to make a world with mesecons, digilines, and this mod. Then, build a screen. It can be one line or multiple lines; it doesn't matter. Then, connect the top-left screen node with digilines to a luacontroller. It should look something like this:

Image
Image

Next, right click the top-left screen node and a menu should pop up. Type something simple and press enter. I typed "screen" without the quotes.

Image

Then, right-click on the luacontroller and type this in:
digiline_send("<what you typed in the last step>", "Some Text")

Don't forget the quote marks, parentheses, or comma! It should look something like this:

Image

Click "Execute" and look at the screen. It should look something like the next screenshot. If no text appeared, try the steps again. If you still can't get it to work, tell me exactly what you did and I'll try to see if I can figure out what's going wrong.

Image

If text did appear, then go to the next spoiler for some more techniques you can do, like colored text.
Spoiler
The screen doesn't automatically clear itself. So, to clear the screen, type
digiline_send("<same thing as before>", "clear")

So, to clear the screen first and then add text, do this:

Code: Select all

digiline_send("<same thing as before>", "clear")
digiline_send("<same thing as before>", "Some Text")
Your luacontroller might look like this now:

Image

Something nice is that the screen wraps around once it hits the edge of the screen. So, if you type
digiline_send("<same thing as before>", "Some TextMore Text")
it would give you this:

Image

This mod automatically goes to the next line once you reach the end of a the screen. But what if you want to go to a new line anywhere? \n will insert a new line. So, it might be something like this:
digiline_send("<same thing as before>", "Text \nOn \nFour \nLines

This gives you this:

Image

If you want to turn the whole screen on, type
digiline_send("<same thing as before>", "allon")

It will now look like this:

Image

Now then, it's time for colors! To change the color at any time, type a slash plus the color number/letter. So this will change the color to blue:
digiline_send("<same thing as before>", "/8Blue Text")

So you get a screen that looks like this:

Image

Of course, /8 is only one color. You can do /0 through /9, as well as /a through /r. So, the whole color chart looks like this (scroll down to see whites and grays):

Code: Select all

/0 = Red           /c = Dark Red
/1 = Orange        /d = Dark Orange
/2 = Yellow        /e = Dark Yellow
/3 = Lime          /f = Dark Lime
/4 = Green         /g = Dark Green
/5 = Aqua          /h = Dark Aqua
/6 = Cyan          /i = Dark Cyan
/7 = Sky Blue      /j = Dark Sky Blue
/8 = Blue          /k = Dark Blue
/9 = Violet        /l = Dark Violet
/a = Magenta       /m = Dark Magenta
/b = Red Violet    /n = Dark Red Violet

/o = White
/p = Light Gray
/q = Medium Gray
/r = Dark Gray
If you change the color, the screen will keep using that color until you change it to something else, even after you clear it. So, all the colors, in order, look like this:

Image
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.
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

Thanks for posting that tutorial. Nice work, I couldn't have done it better myself. :-)
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

How do you did this "v-rob"?
Image
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
v-rob
Developer
Posts: 969
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

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

by v-rob » Post

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.
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

How to send the led marquee value to an other led marquee?
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

Can you scroll text to the right? And please anwser my other question above
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

Sorry, I didn't see your earlier question, and I am not even sure what you mean by sending "the" value.

As for scrolling to the right, no. Not automatically anyway. After all, they're not exactly displaying a right-to-left language. You'll have to do that manually, by repeatedly adjusting your string and re-sending it, to make it look like it's going to the right.

Pull requests welcome.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

VanessaE wrote:Sorry, I didn't see your earlier question, and I am not even sure what you mean by sending "the" value.
The "get" value, I think
VanessaE wrote:as for scrolling to the right, no. Not automatically anyway. After all, they're not exactly displaying a right-to-left language. You'll have to do that manually, by repeatedly adjusting your string and re-sending it, to make it look like it's going to the right.
It's only for a horse race game
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

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

by VanessaE » Post

The "get" value? there are at least a couple of things you can readback from a marquee....
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

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

by ZAAo » Post

Thanks for this awesome mod, Vanessa!

Any possibility of adding a heart "character" to it? Perhaps like the attached illustration? Actually it might be useful to have all the "cards symbols" - heart, diamond, etc.
8x8 LED dot matrix heart-symbol)).png
8x8 LED dot matrix heart-symbol)).png (2.61 KiB) Viewed 1281 times

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

ZAAo wrote:
Wed Sep 15, 2021 17:59
Thanks for this awesome mod, Vanessa!

Any possibility of adding a heart "character" to it? Perhaps like the attached illustration? Actually it might be useful to have all the "cards symbols" - heart, diamond, etc.
8x8 LED dot matrix heart-symbol)).png
Check the digiscreen mod by Cheapie, it is a 16x16 lcd screen which you can control using digilines. You can then draw anything (even bigger than 16x16 by using multiple screens)
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

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

by ZAAo » Post

OK, thanks! I will definitely look at it :)
Miniontoby wrote:
Sat Sep 18, 2021 15:53
ZAAo wrote:
Wed Sep 15, 2021 17:59
Thanks for this awesome mod, Vanessa!

Any possibility of adding a heart "character" to it? Perhaps like the attached illustration? Actually it might be useful to have all the "cards symbols" - heart, diamond, etc.
8x8 LED dot matrix heart-symbol)).png
Check the digiscreen mod by Cheapie, it is a 16x16 lcd screen which you can control using digilines. You can then draw anything (even bigger than 16x16 by using multiple screens)

ZAAo
Member
Posts: 47
Joined: Tue Jul 27, 2021 16:15

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

by ZAAo » Post

Do you perhaps know where I can find a tutorial or more info about how to use Cheapie's Digiscreen? I have searched (web search and Youtube), but the only info I could find is the very limited notes in the mod's readme. I have no idea which commands I can use with it, etc. A few examples would have been great, and maybe a list of all commands it accepts.
Miniontoby wrote:
Sat Sep 18, 2021 15:53
ZAAo wrote:
Wed Sep 15, 2021 17:59
Thanks for this awesome mod, Vanessa!

Any possibility of adding a heart "character" to it? Perhaps like the attached illustration? Actually it might be useful to have all the "cards symbols" - heart, diamond, etc.
8x8 LED dot matrix heart-symbol)).png
Check the digiscreen mod by Cheapie, it is a 16x16 lcd screen which you can control using digilines. You can then draw anything (even bigger than 16x16 by using multiple screens)

User avatar
Miniontoby
Member
Posts: 616
Joined: Fri Mar 01, 2019 19:25
GitHub: Miniontoby
IRC: Miniontoby
In-game: Miniontoby
Location: The Netherlands

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

by Miniontoby » Post

ZAAo wrote:
Mon Sep 20, 2021 02:49
Do you perhaps know where I can find a tutorial or more info about how to use Cheapie's Digiscreen? I have searched (web search and Youtube), but the only info I could find is the very limited notes in the mod's readme. I have no idea which commands I can use with it, etc. A few examples would have been great, and maybe a list of all commands it accepts.
Miniontoby wrote:
Sat Sep 18, 2021 15:53
ZAAo wrote:
Wed Sep 15, 2021 17:59
Thanks for this awesome mod, Vanessa!

Any possibility of adding a heart "character" to it? Perhaps like the attached illustration? Actually it might be useful to have all the "cards symbols" - heart, diamond, etc.
8x8 LED dot matrix heart-symbol)).png
Check the digiscreen mod by Cheapie, it is a 16x16 lcd screen which you can control using digilines. You can then draw anything (even bigger than 16x16 by using multiple screens)
Check this thread:
https://content.minetest.net/threads/559/

It has a lua script to convert a picture to a table which you can send to the digiscreen.

I am also working on python version for the script, but yeah for now it is lua (i kind of have the version done, but not tested yet)

I am maybe also going to write a wiki page on my own wiki with how this mod works just by looking into the code itself, but i havent started yet.
Working on mtctl ---- Check my mod "Doorbell" -- Stay safe

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests