Turn On/Off the Green Power led

From openPicus Wiki
Jump to: navigation, search

Introduction

Some Flyport modules have a green led onboard to let you know that the module is turned on. But sometimes (for battery powered applications) this is not necessary so we decided to drive this led using a mosfet.

Code example


The functions used in this tutorial is the following:

Name Function Description
 void PowerLed (int putval) PowerLed(1) turns on the led. PowerLed(0) turns it off


Personal tools
Namespaces

Variants
Actions
START HERE
DEVELOPMENT
HARDWARE INFO
RESOURCES
PHASED OUT
Toolbox