libwallaby  v23
The wallaby standard library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Digitals

Functions

int digital (int port)
 
void set_digital_value (int port, int value)
 
int get_digital_value (int port)
 
void set_digital_output (int port, int out)
 
int get_digital_output (int port)
 
int get_digital_pullup (int port)
 
void set_digital_pullup (int port, int pullup)
 

Detailed Description

Function Documentation

int digital ( int  port)
int get_digital_output ( int  port)

Gets the current digital mode

Returns
1 for output mode, 0 for input mode
See also
set_digital_value
int get_digital_pullup ( int  port)

Gets the current digital pullup state

Returns
1 for active, 0 for inactive
Deprecated:
not applicable on the Wallaby
int get_digital_value ( int  port)

Gets the current value of the digital port.

Returns
1 if the switch is closed, 0 if the switch is open
See also
set_digital_value
void set_digital_output ( int  port,
int  out 
)

Sets the digital mode.

Parameters
[in]portThe port to modify.
[in]out1 for output mode, 0 for input mode.
void set_digital_pullup ( int  port,
int  pullup 
)

Sets the current digital pullup state

Parameters
[in]portThe port to modify
[in]pullupThe pullup state 1: active 0: inactive
Deprecated:
not applicable on the Wallaby
void set_digital_value ( int  port,
int  value 
)

Sets the value of the digital port in output mode.

See also
get_digital_value