[simpits-tech] EPL-code quest

Frank Riedel simpits-tech@simpits.org
Thu, 24 Jul 2003 08:56:11 +0200


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!
>