[simpits-tech] EPL-code quest

Rod Dale simpits-tech@simpits.org
Fri, 25 Jul 2003 08:52:58 +1000


Frank,
That code "should" do this :

Hit "G" - followed by
3 sec delay - then
LED On.

Hit "G" again - followed by
3 sec delay - then
LED Off.

That's how I see it.
Is that what you want ?

Rod

At 08:56 AM 7/24/03 +0200, you wrote:
>Hi Rod !
>Will this code turn on the LED for 3 sec... and turn it off again when i hit
>"G" ??
>
>All the best
>Frank
>
>----- Original Message -----
>From: "Rod Dale" <rodd@castle.net.au>
>To: <simpits-tech@simpits.org>
>Sent: Thursday, July 24, 2003 7:51 AM
>Subject: Re: [simpits-tech] EPL-code quest
>
>
> > Frank,
> > Try :
> >
> > void Land_Gear.Landing_Gear.On(void)
> > {
> >
> > keyhit(G);
> >
> > delay(300);
> >
> > setpoint(0,1,0b10000000);
> >
> > }
> >
> > void Land_Gear.Landing_Gear.Off(void)
> >
> > {
> > keyhit(G);
> >
> > delay(300);
> >
> > clearpoint(0,1,0b10000000);
> >
> > }
> >
> > Rod
> >
> > At 08:50 PM 7/23/03 +0200, you wrote:
> > >Hi All !
> > >
> > >I can't get this to work.... what do i do wrong ?
> > >
> > >void Land_Gear.Landing_Gear.On(void)
> > >
> > >{
> > >
> > >keyhit(G);
> > >
> > >setpoint(0,1,0b10000000);
> > >
> > >delay(300);
> > >
> > >clearpoint(0,1,0b10000000);
> > >
> > >}
> > >
> > >void Land_Gear.Landing_Gear.Off(void)
> > >
> > >{
> > >
> > >keyhit(G);
> > >
> > >setpoint(0,1,0b10000000);
> > >
> > >delay(300);
> > >
> > >clearpoint(0,1,0b10000000);
> > >
> > >}
> > >
> > >
> > >
> > >Frank
> > >
> > >
> > >_______________________________________________
> > >Simpits-tech mailing list
> > >Simpits-tech@simpits.org
> > >http://www.simpits.org/mailman/listinfo/simpits-tech
> > >To unsubscribe, please see the instructions at the bottom of the above
> > >page.  Thanks!
> >
> > _______________________________________________
> > Simpits-tech mailing list
> > Simpits-tech@simpits.org
> > http://www.simpits.org/mailman/listinfo/simpits-tech
> > To unsubscribe, please see the instructions at the bottom of the above
>page.  Thanks!
> >
>
>_______________________________________________
>Simpits-tech mailing list
>Simpits-tech@simpits.org
>http://www.simpits.org/mailman/listinfo/simpits-tech
>To unsubscribe, please see the instructions at the bottom of the above 
>page.  Thanks!