User Tools

Site Tools


arduino_lib_dpi2cledstatus

This is an old revision of the document!


Documentation Arduino base program code

DpI2CLEDStatus library

Description

DpI2CLEDStatus Arduino library provide function for using signaling LED on daince.nrt Status LED board with PCF8574A.

Source code is provided as is, without any warranty.

Distributed under CC BY v 3.0

Functions

// On inicialization define pin position for LEDs
DpI2CLEDStatus(byte Addr, byte pR1=1, byte pG1=0, byte pB1=2, byte pL1=3, byte pR2=5, byte pG2=4, byte pB2=6, byte pL2=7);

// Set all LEDs off
void setAllOff();

// Set RGB LED 1 
// R - 1 Red On / 0 Red off
// G - 1 Green On / 0 Green Off
// B - 1 Blue On / 0 Blue Off
void setRGBLED1(byte R, byte G, byte B);

// Set RGB LED 2 
// R - 1 Red On / 0 Red off
// G - 1 Green On / 0 Green Off
// B - 1 Blue On / 0 Blue Off
void setRGBLED2(byte R, byte G, byte B);
    
// Set LED 1
// Status - 1 On / 0 Off
void setLED1(byte Status);
    
// Set LED 2
// Status - 1 On / 0 Off
void setLED2(byte Status);

Contact

Author: Dubravko Penezic

Email: dpenezic@gmail.com

Version

Actual

History

V 1.0.0 , 10.01.2012

arduino_lib_dpi2cledstatus.1328861160.txt.gz · Last modified: 2016/09/01 14:09 (external edit)