If it is really PWM that you want...variable intensity LED flashes...
then there is a rudimentary module for mica2,z in my code bolus,
it is for T1, but the pin-poking should be the same:
http://www.etantdonnes.com/Motes/robocode.tar.gz
It sounded (to me) that what is wanted is a variable length LED flash,
which would probably be better done with a timer.
MS
Steve McKown wrote:
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
_______________________________________________
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