#include "Pin.h"
#define DEFAULT_PIN (22) // (onboard LED)
#define OFF (0)
#define ON (1)
#define DELAY_MS (200)
// function prototypes
void blink(int);
int LED_PINS[] = {23, 22, 32, 33, 25, 26, 27, 14, 12, 13};
int num_pins = sizeof(LED_PINS) / sizeof(int);
void setup() {
//empty
}
void loop() {
for ( int i = 0; i < num_pins; i++ ) {
blink(LED_PINS[i]);
}
}
void blink( int led_pin = DEFAULT_PIN ) {
Pin pin(led_pin, Pin::Direction::OUT, OFF);
pin = ON;
delay(DELAY_MS);
pin = OFF;
delay(DELAY_MS);
}