examples/tests/imix/main.c
static void button_callback(__attribute__ ((unused)) int btn_num,
                            int val,
                            __attribute__ ((unused)) int arg2,
                            __attribute__ ((unused)) void *ud) {
  if (val == 1) {
    led_on(0);
  } else {
    led_off(0);
  }
}
// Callback for button presses.
//   btn_num: The index of the button associated with the callback
//   val: 1 if pressed, 0 if depressed
Callback for button presses.
btn_num: The index of the button associated with the callback
val: 1 if pressed, 0 if depressed
Callback for button presses . btn_num : The index of the button associated with the callback val : 1 if pressed 0 if depressed
static void button_callback(__attribute__ ((unused)) int btn_num,
                            int val,
                            __attribute__ ((unused)) int arg2,
                            __attribute__ ((unused)) void *ud) {
  if (val == 1) {
    led_on(0);
  } else {
    led_off(0);
  }
}
static void button_callback ( __attribute__ ( ( unused ) ) int btn_num , int val , __attribute__ ( ( unused ) ) int arg2 , __attribute__ ( ( unused ) ) void * ud ) { if ( val == 1 ) { led_on ( 0 ) ; } else { led_off ( 0 ) ; } }
Callback for button presses.
Callback for button presses .