commiting code that didnt work properly on new branch

This commit is contained in:
2026-09-18 12:25:51 +00:00
parent 285211fae6
commit aae5b19f83
6 changed files with 131 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef ANALOG_OUT_H
#define ANALOG_OUT_H
#include <timer_msec.h>
#include <digital_out.h>
class Analog_out
{
public:
Analog_out(int pin);
void init(int period_ms = 1000);
void set(int duty_cycle);
private:
Timer_msec timer;
public:
Digital_out pin;
};
#endif // ANALOG_OUT_H