/* Copyright 2019 SiFive, Inc */ /* SPDX-License-Identifier: Apache-2.0 */ #include #include "super_blink.h" int main() { int error = 0; int ledNum = 0; int colours[NUM_LEDS] = { GREEN_LED, RED_LED, BLUE_LED, }; setup_GPIO(); while (!error) { set_LED(colours[ledNum], ON); delay(DELAY); error = set_LED(colours[ledNum], OFF); delay(DELAY); ledNum++; if (ledNum >= NUM_LEDS) { ledNum = 0; } } }