devinaconley / arduino-plotter

An Arduino library for easy graphing on host computer via serial communication
MIT License
186 stars 31 forks source link

Templated references #2

Closed devinaconley closed 8 years ago

devinaconley commented 8 years ago

Moved to a templated system such that any data type can now be passed and stored as as a reference for graphing (assuming it can be cast to a double)

Each variable is wrapped by a helper class that stores the variable label, a void pointer, and a function pointer to the appropriate templated static_cast to the original data type