uStepper
|
Prototype of class for the temperature sensor. More...
#include <uStepper.h>
Public Member Functions | |
uStepperTemp (void) | |
Constructor. More... | |
float | getTemp (void) |
Request a reading of current temperature. More... | |
Prototype of class for the temperature sensor.
This class enables the user of the library to access the temperature sensor on the uStepper board. This class can be instantiated as a standalone object if this is the only feature on the uStepper required by the programmers specific application.
Definition at line 405 of file uStepper.h.
uStepperTemp::uStepperTemp | ( | void | ) |
Constructor.
This is the constructor of the temperature sensor class, and should be used in order to instantiate a temperature sensor object as follows:
Definition at line 660 of file uStepper.cpp.
float uStepperTemp::getTemp | ( | void | ) |
Request a reading of current temperature.
This method performs a reading of the current NTC temperature and returns this value. Since the NTC resistor is physically placed close to the stepper driver chip on the uStepper board, the temperature returned by this method will be close to the actual temperature of the driver chip.
Definition at line 665 of file uStepper.cpp.