I have managed to "translate" an entire code written in C to LUA, the source code permits to drive an 5110/3110 LCD and I have tried not to modify the code, but the port names, because I will run it on a router and use the LED as GPIO pins. Anyway... I've been translating about 3 hours and now I'm done, but it wont run, it shows me errors, wherer I can't find one... For me it seems good.
C Source: http://www.est.ipcb.pt/pessoais/alexandre_t/fon_LCD/3310_ex_1.c My translated LUA Script: https://gist.github.com/anonymous/62cc0897ede3cb788baa
The first error it gives me ìs that Screen.lua:26: '(' expected near 'local'
But there don't seem to be an error...
If anyone could revise my code and point me forward, I would be very glad.