Skip to content

2.2 Apollo

Martyn Rushton edited this page Feb 19, 2016 · 1 revision

Apollo API

This file contains all the functions that can be used in the Apollo module of Olympus.You can find basic usage of this module here

void Apollo(int pins[])

The constructor takes in an integer array of pins and sets up these pins to be in output mode.

void turnOn(int pin)

Turns on the led attached to the pin provided.

void turnOff(int pin)

Turns off the led attached to the pin provided.

void blink(int pin, int interval = 500)

Turns on the led attached to the pin provided for the interval provided in milliseconds. If no interval is provided, it will stay on for 500 milliseconds by default.

Clone this wiki locally