I'm afraid I'm a bit too busy getting things shipped to help out much with this for the next 2 weeks.
If the output is getting cropped to ~1V peak to peak then chances are you're trying to write to a pin that is already set to an output though
Also internally setWatch uses GPIOTE in order to work, so if you're setWatching on the same pin then that could be a problem.
You could also try changing the gpiote number from 0 to something else. It's possible it's conflicting with the ones used for setWatch??
gpiote
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm afraid I'm a bit too busy getting things shipped to help out much with this for the next 2 weeks.
If the output is getting cropped to ~1V peak to peak then chances are you're trying to write to a pin that is already set to an output though
Also internally setWatch uses GPIOTE in order to work, so if you're setWatching on the same pin then that could be a problem.
You could also try changing the
gpiote
number from 0 to something else. It's possible it's conflicting with the ones used for setWatch??