button2

Reads Euxoloti's Button 2
Author: Paul
License: BSD
Github: euxo/1 0/button2.axo

Inlets

None

Outlets

bool32 Button 2

Init
palSetPadMode(GPIOC, 3, PAL_MODE_INPUT_PULLUP);
Control Rate
outlet_button2 = ((palReadPad(GPIOC, 3) << 27) > 0) ? 0 : 1;

Privacy

© 2024 Zrna Research