Dear Friends,
Please help me I have a rak4200 modules with V3.2.0.14 and spend a lot of time trying to use gpio as input but I can’t I always Receive RUI_STATUS_PARAMETER_INVALID, code is
rui_init(); rui_delay_ms(3000); RUI_LOG_PRINTF("Bienvenido\r\n"); const uint32_t BUT=8; RUI_GPIO_ST but; but.pin_num = BUT; but.dir = RUI_GPIO_PIN_DIR_INPUT; but.pull = RUI_GPIO_PIN_PULLUP; RUI_RETURN_STATUS rr = rui_gpio_init(&but); RUI_LOG_PRINTF("rr = %d\r\n",rr); RUI_RETURN_STATUS ri = rui_gpio_interrupt(true, but, RUI_GPIO_EDGE_FALL, RUI_GPIO_IRQ_HIGH_PRIORITY,handleButton1); RUI_LOG_PRINTF("ri = %d\r\n",ri);
and in my serial always receive
[00:10:26:046] Bienvenido␍␊ [00:10:26:046] rr = 10␍␊ [00:10:26:046] ri = 10␍␊ [00:10:26:046] autosend_interval: 600s␍␊ [00:10:26:046] Initialization OK,Current work_mode:LoRaWAN, join_mode:OTAA, Class: A␍␊ [00:10:26:046] ␍␊ [00:10:26:110] OTAA Join Start...␍␊ [00:10:31:195] [LoRa]:Join Success␍␊ [00:10:31:195] OK␍␊
The number 10 in rr and ri is becase I put in rui.h
RUI_STATUS_PARAMETER_INVALID=10,
I use Products_practice_based_on_RUI_v2.0-master
Please help me and sorry for this simple question
Best Regards