[Tinyos-help] Re: Progressive blinking

Steve McKown rsmckown at yahoo.com
Tue Feb 6 09:30:28 PST 2007


On Monday 05 February 2007 09:37, Jordi Casals wrote:
> > Could someone tell me which is the interface that I could use to
> > control the Leds power? I would like to make a progressive blinking.
>
> Sorry, I always forget to say that I am using T2 and a micaz platform

I expect the LED(s) on the micaz (which I don't use myself) are connected to 
digital IO pins.  If so, your only recourse to vary the intensity of the LED 
programmatically is to use PWM (pulse width modulation).  It doesn't appear 
T2 has any built-in support for this capability.

If the micaz's uC has a timer resource supporting PWM (probably does) and the 
LED(s) is/are connected to IO pin(s) that connect to the timer, you could 
build a component to do what you want.  Writing a PWM component is probably a 
task of moderate difficulty.

Cheers,
Steve


More information about the Tinyos-help mailing list