Accessories
Arduino for motors and lights library.
PortExpanderSX1509 Class Reference
Inheritance diagram for PortExpanderSX1509:
PortExpander

Public Member Functions

byte begin (int inId, byte inAddress)
 
void beginPin (int inPin, PIN_TYPE inType)
 
void digitalWrite (int inPin, int inValue)
 
void analogWrite (int inPin, int inValue)
 
byte GetPinsNumber ()
 
 PortExpanderSX1509 ()
 
- Public Member Functions inherited from PortExpander
 PortExpander ()
 

Additional Inherited Members

- Static Public Member Functions inherited from PortExpander
static void beginPin (int inPin, int inExpId, PIN_TYPE inType)
 
static void digitalWrite (int inPin, int inExpId, int inValue)
 
static void analogWrite (int inPin, int inExpId, int inValue)
 
- Protected Member Functions inherited from PortExpander
virtual byte begin ()
 
- Static Protected Member Functions inherited from PortExpander
static void Add (PortExpander *inExpander)
 
- Protected Attributes inherited from PortExpander
int id
 

Detailed Description

Definition at line 12 of file PortExpanderSX1509.hpp.

Constructor & Destructor Documentation

PortExpanderSX1509::PortExpanderSX1509 ( )

Default constructor.

Member Function Documentation

void PortExpanderSX1509::analogWrite ( int  inPin,
int  inValue 
)
virtual

Set the value of one pin of the expander.

Parameters
inPinnumber of the pin. should be between 0 and the maximum number of expander pins.
inValueNew analog value of the pin. Should be between 0 and 255.

Implements PortExpander.

void PortExpanderSX1509::beginPin ( int  inPin,
PIN_TYPE  inType 
)
virtual

Initialize one pin of the expander.

Parameters
inPinnumber of the pin. should be between 0 and the maximum number of expander pins.
inTypetype of the output of this pin : DIGITAL or ANALMOG (pwm).

Implements PortExpander.

void PortExpanderSX1509::digitalWrite ( int  inPin,
int  inValue 
)
virtual

Set the state of one pin of the expander.

Parameters
inPinnumber of the pin. should be between 0 and the maximum number of expander pins.
inValueNew state of the pin. Should be HIGH (1) or LOW (0).

Implements PortExpander.

byte PortExpanderSX1509::GetPinsNumber ( )
inlinevirtual

Gets the total number of pins of the expander.

Returns
Number of pins.

Reimplemented from PortExpander.

Definition at line 22 of file PortExpanderSX1509.hpp.


The documentation for this class was generated from the following file: