Main Site Documentation

Using OutputCompare in a Gadgeteer Driver?


Is it possible to use OutputCompare in a driver for a Gadgeteer module?

I’m pretty sure I could add the required assembly and namespace references to my driver project, but I’m wondering how to manage dependencies…wouldn’t the assembly potentially get out of date? Or am I over-thinking things?


There is no gadgeteer interface for output compare. You will need to use it directly.


@ Gus

Right…I understand that. And in a normal project, it’s no big deal to do so.

But I’m in the process of writing the driver for my IR LED Array module, and I’m trying to figure out if it’s OK to use the GHIElectronics.Gadgeteer.Hardware assembly inside a driver. I’ve already confirmed that it’s possible to add a reference to the assembly and code to OutputCompare.

The question is whether this is a supported practice, or do I need to write my own version?

Hope that makes sense.


Output compare is not supported on every single mianboard. In your case, it is a must have for the IR LED I think so I am not sure about the best way to support this.