Luke Cartwright / Mbed 2 deprecated ELEC2645_Project_el18loc_nearlythere

Dependencies:   mbed

Sound/Sound.h

Committer:
lukeocarwright
Date:
2020-05-19
Revision:
14:9cfe0041cc4e
Child:
22:028f1627c262

File content as of revision 14:9cfe0041cc4e:

#ifndef SOUND_H
#define SOUND_H

#include "mbed.h"
//#include "LUTs.h"


class Sound
{
public: //----------------------------------------------------------------------
//Constructor/Destructor
    Sound();
    
    ~Sound();
    
//Variables
int waveform;
int frequency;
    
//Functions
 uint16_t sound_main(bool initial, int waveform, int frequency); //runs main sound function


private: //---------------------------------------------------------------------
//Variables
uint16_t i;
double i_d;



//Functions
uint16_t wavetable_itt(uint16_t i, int frequency); //itterates wavetable
};
#endif