missing files

This commit is contained in:
0x23 2026-03-13 15:33:09 +01:00
parent f6a42d9fb0
commit e754a6b2d8
3 changed files with 181 additions and 0 deletions

View file

@ -0,0 +1,32 @@
// --------------------------------------------------------------------------------------
// Project: MicroManipulatorStepper
// License: MIT (see LICENSE file for full description)
// All text in here must be included in any redistribution.
// Author: M. S. (diffraction limited)
// --------------------------------------------------------------------------------------
#pragma once
#include "pico/stdlib.h"
#include "hardware/pio.h"
#include "hardware/clocks.h"
#include "robot_tool_interface.h"
//*** CLASS *****************************************************************************
//--- PwmTool ---------------------------------------------------------------------------
class PwmTool : public IRobotTool {
public:
~PwmTool() {};
void init(int output_pin, int frequency, int resolution_bits);
void set_value(float v) override;
private:
PIO pio = pio0;
int state_machine = 0;
int output_pin = 0;
uint32_t max_pwm = 0;
};