PDA

View Full Version : requesting help whit a little lua



michielsweb
05-07-2015, 08:39 PM
Hi there all i am new to this forum. my name is michiel and i came up whit this daring idea throw the keyboard aside during flying.
then i came up whit this idea. and i feel like i might need a kick in the right direction.
is there anyone who could help me whit a little luascript?

the idea:
the idea is i want to use a rotary switch, to control my lcd screen. (so i can add several pages)
but i have no idea too read which poort is selected. and if its posseble :$ how to print to lcd whitin
(however i think this is something that i can find out.) if someone could tell me how to read out if a pin from one of my pokey cards is in action i would be realy gratefull

something like this ( in php)


function LCDdisplay() {
if ($joystick1['pin40'] == true) {
echo "nav radio page";
}
elseif ($joystick1['pin41'] == true) {
echo "com radio page";
}
elseif ($joystick1['pin42'] == true) {
echo "com radio page";
}
else {
echo "no screen selected"
}
}



so if someone want to help me on my way, i would be gratefull even if its just 1 letter on the way.
i try to learn from it.

michielsweb
05-11-2015, 01:08 PM
little bump, ( is it allowed? )

also would mention i would be open to a alternative solution to replace pokey lcd..
provided it not going to set me back heaps of money.

basicly i want to make a couple screens.

1. baterypage.
2. fuel page.
3. not sure yet

4 ( main page center of rotary switch) alt, vs, speed etc, and ap modes

5 radio panel nav
6 radio panel pt 2. com and squawk


using the iflytofsuipc to receive the data.

ps: i have 2 potentio's on the paper drawing for the nav changing.
speed etc is just to read out

stil hoping someone can help me whit the display part. :$


friendly regards michiel