Data Sheet

Core Spartan Documentation Modern Robotics, Inc
Version 3.0.3 Page 31
8.1. Program Control Button (45-2002)
The Program Control Button (PCB) is intended for use in starting and stopping programs
giving the user more control over their program. The sensor consists of a button and an
LED that interact digitally with Core Spartan Controller. The PCB can be used with
delayedStart() to reset and start the Core Spartan Controller, or with read() and
writeLED() independent of the delayedStart() function. Refer to the Program Control
Button example folder for more information on different implementation methods.
http://modernroboticsinc.com/program-control-button
Program Control Button functions:
CORE_PCB(char input)
int delayedStart(void)
char read(void)
void writeLED(uint8_t value)
CORE_PCB(char input)
This function is the constructor; it turns the CORE_PCB class into an object. The
parameter input is a byte that corresponds to the port that the button is
connected to.
CORE_PCB PCB(3);
…or…
CORE_PCB;