electro-smith / DaisyDuino

Arduino Support for the Daisy Audio Platform.
https://www.electro-smith.com/daisy
MIT License
92 stars 20 forks source link

Bug Report: no negative voltage because of constrain #50

Open BeatRossmy opened 2 years ago

BeatRossmy commented 2 years ago

https://github.com/electro-smith/DaisyDuino/blob/eb2964f5a970115ffc33ffd568a78c1743562ee7/src/DaisyDuino.h#L67

the constrain function should restrict the value range to -5 to 5 not to 0 to 1024