By wiring twice you are saying that the functions provided by the
interface Leds are also called twice. BlinkC calls the leds to toggle,
and two back-to-back toggles makes the led stay the same (at least for
our eyes).

Hugo


On 8/13/07, Min Guo <[EMAIL PROTECTED]> wrote:
> When applying the Blink application on tmote sky, I find if I add one
> more "BlinkC.Leds -> LedsC; " statement to the file BlinkAppC.nc, the
> Leds stop blinking. Here is the code of BlinkAppC.nc:
>
> I mean, if one change the code of BlinkAppC.nc to be the following,
> the Leds wont blink:
>
> configuration BlinkAppC
> {
> }
> implementation
> {
>   components MainC, BlinkC, LedsC;
>   components new TimerMilliC() as Timer0;
>   components new TimerMilliC() as Timer1;
>   components new TimerMilliC() as Timer2;
>
>
>   BlinkC -> MainC.Boot;
>
>   BlinkC.Timer0 -> Timer0;
>   BlinkC.Timer1 -> Timer1;
>   BlinkC.Timer2 -> Timer2;
>   BlinkC.Leds -> LedsC;
>   BlinkC.Leds -> LedsC;
> }
>
>
> Best,
> MG
> _______________________________________________
> Tinyos-help mailing list
> [email protected]
> https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to