Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.

djcult

Member Since 16 Aug 2010
Offline Last Active Sep 01 2010 12:05 PM
-----

Topics I've Started

Blinking, fading and other useful functions

16 August 2010 - 06:30 PM

I've written some wrappers around the OutputPort and PWM classes that provide some useful basic functionality. Blinking and fading can be done asyncronously.

Method signatures are:

DiscretePort.TurnOn()
DiscretePort.TurnOff()
DiscretePort.Toggle()
DiscretePort.IsOn
DiscretePort.Blink()
DiscretePort.Blink(int times)
DiscretePort.Blink(int times, bool async)
DiscretePort.Blink(int times, int periodInMilliseconds, bool async)

PwmPort.FadeIn()
PwmPort.FadeIn(int periodInMilliseconds)
PwmPort.FadeIn(int periodInMilliseconds, bool async)
PwmPort.FadeOut()
PwmPort.FadeOut(int periodInMilliseconds)
PwmPort.FadeOut(int periodInMilliseconds, bool async)
PwmPort.FadeInAndOut(int periodInMilliseconds)
PwmPort.FadeInAndOut(int periodInMilliseconds, bool async)

Forgive me if my terminology is all wrong - I'm new to the embedded thing. Code with examples is at here.

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.