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.
Diff: wave.h
- Revision:
- 0:8ee38453bad9
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wave.h Sun Mar 13 01:12:40 2016 +0000 @@ -0,0 +1,19 @@ +#ifndef WAVE_H +#define WAVE_H + +#define WAVE_TYPE_FIRST 0 +#define WAVE_TYPE_SAW 0 +#define WAVE_TYPE_TRIANGLE 1 +#define WAVE_TYPE_SQUARE 2 +#define WAVE_TYPE_LAST 2 +#define WAVE_TYPE_DEFAULT WAVE_TYPE_SAW +#define WAVE_SAMPLE_RATE 22050 + +void wave_init(void); +void wave_reset(void); +void wave_update(void); +int wave_nextval(unsigned freq); +bool wave_type_changed(void); +void wave_type_incr(void); +#endif +