WIP: keep local changes before merging remote
This commit is contained in:
33
cvicenie_5/Led.h
Normal file
33
cvicenie_5/Led.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef __LED_H
|
||||
#define __LED_H
|
||||
|
||||
#include "mbed.h"
|
||||
|
||||
// class Led
|
||||
class Led
|
||||
{
|
||||
private:
|
||||
|
||||
public:
|
||||
//! Constructor
|
||||
Led(PinName pin);
|
||||
//! Destructor
|
||||
~Led();
|
||||
// set value
|
||||
void set(bool s);
|
||||
// set duty
|
||||
void setDuty(float duty);
|
||||
// get duty
|
||||
float getDuty();
|
||||
void graduallyOn();
|
||||
PwmOut* getPwmOut();
|
||||
void setBlinkPeriod(float period);
|
||||
void tickerHandler();
|
||||
|
||||
|
||||
private:
|
||||
PwmOut led;
|
||||
Ticker ticker;
|
||||
|
||||
};
|
||||
#endif
|
||||
Reference in New Issue
Block a user