HowTo? Get "Hello, world!" to appear on LCD? Tutorial available?

Started by l_d_allan, March 28, 2018, 01:05:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

l_d_allan

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

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

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

l_d_allan

Quote from: dfort 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!"
... 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"