Compare commits
No commits in common. "b85741879510f8310fc468a52629c2adea60bed9" and "c515c1e07e5f3987f6182b4d48d7b9bd774a180b" have entirely different histories.
b857418795
...
c515c1e07e
3
pwm.c
3
pwm.c
@ -2,7 +2,6 @@
|
||||
#include <pico/types.h>
|
||||
|
||||
#include "const.h"
|
||||
#include "synth.h"
|
||||
|
||||
#include "pwm.h"
|
||||
|
||||
@ -14,7 +13,7 @@ void pwm_isr(void) {
|
||||
pwm_clear_irq(slice);
|
||||
|
||||
// TODO:
|
||||
float sample = get_sample();
|
||||
float sample = 0.0f;
|
||||
|
||||
uint16_t level = (uint16_t)((sample + 1.0f) * 0.5f * 3400.0f);
|
||||
pwm_set_chan_level(slice, chan, level);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user