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.
Fork of Smoothie by
DigipotBase.h
00001 #ifndef DIGIPOTBASE_H 00002 #define DIGIPOTBASE_H 00003 00004 #include "libs/Kernel.h" 00005 #include "libs/utils.h" 00006 #include <string> 00007 #include <math.h> 00008 00009 class DigipotBase { 00010 public: 00011 DigipotBase(){} 00012 virtual ~DigipotBase(){} 00013 00014 virtual void set_current( int channel, float current )= 0; 00015 virtual float get_current(int channel)= 0; 00016 void set_max_current(float c) { max_current= c; } 00017 void set_factor(float f) { factor= f; } 00018 00019 protected: 00020 float factor; 00021 float max_current; 00022 }; 00023 00024 00025 #endif
Generated on Tue Jul 12 2022 20:09:00 by
1.7.2
