I find it notable that Lua were also the language of choice for the Minecraft mod Computer Craft. There is quite a community behind it, also providing code examples such as this one, which prints a graph over time to display the level of stored energy of a component on a display. How devices (such as displays) are addressed, however, depends on choices of the game developers, and I would also be very interested where such information can be found (or if such features are even already in the game). But I am downloading the game right now and looking forward to play DU for the first time, so maybe I will find my answers soon. ☺️
Other than that, there are plenty of beginner-friendly Lua code examples that can easily be found using search engines, such as on http://lua-users.org/wiki/SampleCode. If you need more basic explanations, you should probably watch some Lua tutorials on Youtube. If you are looking for an entirely pain-free way to learn programming, there is none. Learning programming includes doing a lot of mistakes, and one can only learn it decently when they are willing to suffer for it (due to the results being obviously worth it).
Edit: I just found the required information ingame at Codex (f1) -> Scripting.