On Tue, 2012-10-16 at 10:48 +0200, Michele Cane wrote:
> On Mon, Oct 15, 2012 at 3:06 PM, Ian Campbell <[email protected]> wrote:
> > On Mon, 2012-10-15 at 14:51 +0200, Michele Cane wrote:
> >> > Great, can you share your qcontrol.conf please?
> >> >
> >>
> >> I used the default ts-419p.lua config file
> >
> > AH, OK. I was hoping you had written and debugged the lua code to read
> > the GPIO settings. Not to worry.
>
> in postinst with something like:
>
> if [ -e /sys/class/gpio/gpio45/value ]; then
>
> screen=lcd
> else
> screen=no-lcd
>
> fi
I think you would actually have to read the content of value.
> in a case loop we could discriminate between models needing the
> ts419p.lua and the ts41x.lua
>
> if you like the idea I can create a patch.
I was thinking of combining ts419p and ts41x.lua into a single file with
the registration of the LCD submodule gated on a check of the gpio in
the lua code itself.
I'm AFK this weekend but I'll see if I can prototype something soon.
Ian.
--
Ian Campbell
Current Noise: Dew-Scented - Flesh Reborn
Thus spake the master programmer:
"When a program is being tested, it is too late to make design changes."
-- Geoffrey James, "The Tao of Programming"
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]