Little-Wire
Functions
GPIO

Functions

void littleWire::pinMode (unsigned char pin, unsigned char mode)
void littleWire::digitalWrite (unsigned char pin, unsigned char state)
unsigned char littleWire::digitalRead (unsigned char pin)

Detailed Description

GPIO functions


Function Documentation

unsigned char littleWire::digitalRead ( unsigned char  pin)

Read pin value

Parameters:
pinPin name (PIN1 , PIN2 , PIN3 or PIN4 )
Returns:
Pin state (HIGH or LOW)
void littleWire::digitalWrite ( unsigned char  pin,
unsigned char  state 
)

Set pin value

Parameters:
pinPin name (PIN1 , PIN2 , PIN3 or PIN4 )
statePin state (HIGH or LOW)
Returns:
(none)
void littleWire::pinMode ( unsigned char  pin,
unsigned char  mode 
)

Set pin as input/output

Parameters:
pinPin name (PIN1 , PIN2 , PIN3 or PIN4 )
modeMode of pin (INPUT or OUTPUT)
Returns:
(none)
 All Classes Functions