Hello Simon,
I want to use PWM to generate a frequenz for sound * numbers of form to put out sound direct via AlaogOut.
I have written sounds with Play_Note(float note, float lengh, bool combine, float loud, int instrument),
than I generate PWM with 1/note* number of points os form (so 47 to 58)
now I want to use PWM.read() to syncronice a FOR controll to read data of form to send there to analogOut(p18).
How can I be sure that on every rise of PWM I get a signal to start FOR?
I have tryed with IF (PWM.read() == 1) ... but it seems not running good. ist there annother way?
We've added this forum so you can post about new and cool things in the world of mbed.
We're expecting info like:
Hopefully it can be a little bit like a community blog. Each post should be a new thread, and then people can comment as they wish.
Simon