Pulse Rifle FX Module Wiki
Aliens Pulse Rifle M41A SFX / Counter Module
Status: Beta
Brought to you by:
majenko
:::C
int readInput(int i);
Get the current value of an input channel. If the channel is set to digital, it will be either 0 or 1; 0 is "pressed", and 1 is "not pressed" (digital inputs are "active low"). If it is set to analog, the value will be between 0 and 4095.
:::C
button_pressed = readInput(2);