Menu

initAutofire

Majenko Technologies

Format

:::C
void initAutofire(int in, int speed, void (*func)(int, int));

Description

Initialize the autofire functionality. The function specified in the third parameter will be called speed times per second while the input channel in is activated.

Example

:::C
initAutofire(0, 20, pulse_rifle_fire);

Related

Wiki: Firmware Functions

MongoDB Logo MongoDB