Tatsuya Yamamoto / Mbed 2 deprecated UV_Robot_Nucleo

Dependencies:   mbed X_NUCLEO_PLC01A1 ros_lib_melodic

lamp_module.cpp

Committer:
yamadola
Date:
2020-08-15
Revision:
1:ef4b86795d79

File content as of revision 1:ef4b86795d79:

#include "lamp_module.h"

LampModule::LampModule(uint8_t LampPin, PLCController *pPlcController)
:_Lamp(LampPin, pPlcController), _uvState(0){}

void LampModule::init(){
}

void LampModule::setUVPower(uint8_t pow){
    if(pow){
        _Lamp.On();
        _uvState = 1;
    }else{
        _Lamp.Off();
        _uvState = 0;
    }
}