Try:
static void audio_click (struct _lv_indev_drv_t *drv, lv_event_t event)
{
if (event == LV_EVENT_PRESSED) {
audio_play (sound_sinus2000hz_100ms);
}
}
Try:
static void audio_click (struct _lv_indev_drv_t *drv, lv_event_t event)
{
if (event == LV_EVENT_PRESSED) {
audio_play (sound_sinus2000hz_100ms);
}
}