Author Topic: HowTo? Get "Hello, world!" to appear on LCD? Tutorial available?  (Read 541 times)

l_d_allan

  • Senior
  • ****
  • Posts: 258
Sorry if this has already by asked & answered ....

Is there a tutorial available with step-by-step instructions on getting "Hello, world!" to appear on the LCD of my Canon DLSR's (6d, 5dm2, 600d)?
  • Tool-chain involved, if any.
  • Setup on Windows 10 desktop, if any.
  • How to upload the Lua script to DSLR flash card. My speculation is that it would be similar to updating the ML code and/or modules.
  • How to access and launch the uploaded LUA code to see if it worked.
  • For extra credit, perhaps get a button to light up, or something to beep, or ???

dfort

  • Developer
  • Hero Member
  • *****
  • Posts: 3647
Re: HowTo? Get "Hello, world!" to appear on LCD? Tutorial available?
« Reply #1 on: March 28, 2018, 03:38:00 AM »
Since this is posted in the Scripting Corner I suppose you wan to run the LUA, "Hello, world!"

  • Activate the lua module
  • Go to the lua menu
  • Run the Hello World script



Nothing special required to edit the script, just a text editor. It lives on your card under ML/scripts/hello.lua

Code: [Select]
-- Hello, World!
-- Prints 'Hello World' on the console

menu.close()
console.show()
print "Hello, World!"
print "Press SET to exit."
key.wait(KEY.SET)
console.hide()

That's the beauty of LUA scripts, no special development environment required.
5D3.* 7D.206 700D.115 EOSM.203 EOSM2.103 M50.102

l_d_allan

  • Senior
  • ****
  • Posts: 258
Re: HowTo? Get "Hello, world!" to appear on LCD? Tutorial available?
« Reply #2 on: March 28, 2018, 05:35:31 AM »
Since this is posted in the Scripting Corner I suppose you wan to run the LUA, "Hello, world!"
... snip ...
That's the beauty of LUA scripts, no special development environment required.

Thanks for the reply. As you mention, it isn't all that difficult once you start grappling with it and get it wrestled to the ground.

I did manage to modify "hello.lua" to "hi_lda.lua", upload to ML/scripts on the SD card and ... magical drum roll ... it worked.

Big Fun!

Now for a script to "Drain Battery to 95 Percent"