WIP: keep local changes before merging remote

This commit is contained in:
Filipriec
2025-11-13 14:42:47 +01:00
parent 915c573b27
commit 3c11e1dff8
9 changed files with 320 additions and 47 deletions

33
cvicenie_5/Led.h Normal file
View 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