赤ゾーンを青ゾーン仕様に

Dependencies:   mbed

LED/LED.cpp

Committer:
M_souta
Date:
2019-10-18
Revision:
29:44d5454ce8fa
Parent:
0:669ef71cba68
Child:
30:8f092276b2ba

File content as of revision 29:44d5454ce8fa:

#include "LED.h"

#include "../System/Using.h"
#include "mbed.h"
#include <stdint.h>

namespace LED {
    DigitalOut boardLED[USE_LED_NUM] = {
        DigitalOut(LED_DEBUG0_PIN),
        DigitalOut(LED_DEBUG1_PIN),
        DigitalOut(LED_DEBUG2_PIN),
        DigitalOut(LED_MU_PIN),
    };
    
    DigitalOut tapeLED[] = {
        DigitalOut(LED_tape0_PIN),
        DigitalOut(LED_tape1_PIN),
        DigitalOut(LED_tape2_PIN),
        DigitalOut(LED_tape3_PIN),
        DigitalOut(LED_tape3_PIN),
    };

    void LED::Initialize() {
        for(uint8_t i=0; i < USE_LED_NUM; i++) {
            boardLED[i] = LED_OFF;
        }
        for(uint8_t i=0; i < 5; i++) {
            tapeLED[i] = LED_OFF;
        }
    }
}