All Files Functions Variables Macros
Macros | Functions
pin.h File Reference

Detailed Description

Library containing methods for the pins.

pin.h contains methods to control the pins of the Lightup microboard

Go to the source code of this file.

Macros

#define PRESSED   0
 
#define UNPRESSED   1
 

Functions

void on (int pin)
 Function to switch on the power on a certain pin on the microboard.
Valid pin values are:
OUTPUT_A
OUTPUT_B
OUTPUT_C
OUTPUT_D
OUTPUT_E
OUTPUT_F. More...
 
void off (int pin)
 Function to switch off the power on a certain pin on the microboard.
Valid pin values are:
OUTPUT_A
OUTPUT_B
OUTPUT_C
OUTPUT_D
OUTPUT_E
OUTPUT_F. More...
 
void onOff (int pin)
 Function to switch the power on and off after a half a second on certain pin on the microboard. More...
 
void allOn ()
 Function to switch the power on all OUTPUT pins on the microboard. More...
 
void allOff ()
 Function to switch the power off all OUTPUT pins on the microboard. More...
 

Macro Definition Documentation

#define PRESSED   0

Helpful constants for buttons

#define UNPRESSED   1

Function Documentation

void allOff ( )

Function to switch the power off all OUTPUT pins on the microboard.

Returns
nothing
void allOn ( )

Function to switch the power on all OUTPUT pins on the microboard.

Returns
nothing
void off ( int  pin)

Function to switch off the power on a certain pin on the microboard.
Valid pin values are:
OUTPUT_A
OUTPUT_B
OUTPUT_C
OUTPUT_D
OUTPUT_E
OUTPUT_F.

Returns
nothing
void on ( int  pin)

Function to switch on the power on a certain pin on the microboard.
Valid pin values are:
OUTPUT_A
OUTPUT_B
OUTPUT_C
OUTPUT_D
OUTPUT_E
OUTPUT_F.

Returns
nothing
void onOff ( int  pin)

Function to switch the power on and off after a half a second on certain pin on the microboard.

Returns
nothing