Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed X_NUCLEO_PLC01A1 ros_lib_melodic
lamp_module.cpp
- Committer:
- yamadola
- Date:
- 2020-08-30
- Revision:
- 3:ea5cfd721b53
- Parent:
- 1:ef4b86795d79
File content as of revision 3:ea5cfd721b53:
#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;
}
}