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.
LUTs/LUTs.h
- Committer:
- lukeocarwright
- Date:
- 2020-05-06
- Revision:
- 10:258a1eca02cc
- Parent:
- 9:f6ba53e355a0
- Child:
- 11:6ae098535da9
File content as of revision 10:258a1eca02cc:
#ifndef LUTs_H #define LUTs_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" /** LUTs class * @author Luke Cartwright, University of Leeds * @brief generates LUTs * @date May 2020 */ class LUTs { public: //constructor LUTs(); //destructior ~LUTs(); //variables //methods void initial_wavetables(); void sin_wavetable(); void tri_wavetable(int pulsewidth); private: //variables float rem; float sin_d; uint16_t sin_u; float dif; uint16_t dif_u; int i; float rise_t; float fall_t; }; #endif