electro-smith / DaisyExamples

Examples for the Daisy Platform
https://github.com/electro-smith/DaisyWiki/wiki
MIT License
361 stars 189 forks source link

daisy_versio.cpp Inverted Gate input #275

Open KoSv opened 1 year ago

KoSv commented 1 year ago

Hey,

I wondered why my gate inputs seemed delayed when triggered and I had to modify the source of daisy_versio.cpp to get it to work properly: from gate.Init(&gate_gpio); to gate.Init(&gate_gpio, false); because in gatein.h void Init(dsy_gpio_pin *pin_cfg, bool invert = true); is by default and this leads to this confusion.

cheers!