Page 2 of 2

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

Posted: 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]

Posted: 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]

Posted: 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]

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

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

Posted: 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]

Posted: 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]

Posted: 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]

Posted: 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.
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.

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

Posted: 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]

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

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

Posted: 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.

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

Posted: Sat Jul 13, 2019 18:26
by Miniontoby
How to send the led marquee value to an other led marquee?

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

Posted: Wed Jul 24, 2019 12:17
by Miniontoby
Can you scroll text to the right? And please anwser my other question above

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

Posted: Wed Jul 24, 2019 12:33
by VanessaE
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.

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

Posted: Wed Jul 24, 2019 15:38
by Miniontoby
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

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

Posted: Wed Jul 24, 2019 15:57
by VanessaE
The "get" value? there are at least a couple of things you can readback from a marquee....

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

Posted: Wed Sep 15, 2021 17:59
by ZAAo
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 1285 times

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

Posted: Sat Sep 18, 2021 15:53
by Miniontoby
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)

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

Posted: Sat Sep 18, 2021 16:33
by ZAAo
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)

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

Posted: Mon Sep 20, 2021 02:49
by ZAAo
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)

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

Posted: Mon Sep 20, 2021 13:09
by Miniontoby
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.