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
I’ve had some challenges porting from RAK811 to RAK4200, so the procedure I’ve adopted is to refer to the previous release of RUI on GitHub:
to try to find the nearest piece of code for RAK811 which has the most examples.
But then I do not become surprised when I move it to RAK4200 and I have to make changes.
So, if you do have a RAK811, move the code over to that to check it works OK before writing directly for the 4200.
PS, if you could format you post (edit it the pencil) and use the " formatter for block quote so we can see the code and the log separately, it makes it easier to read which makes it easier to post responses.
@nmcc thanks for your advice about the formatter and thanks for your advice about the code but I have a little big problem
The code that I am using I used it with the previous compiler in the previous firmware on RAK4200 and it works very well and now I can’t get it to work in this new version, that’s why my confusion
I can’t talk for RAK4200, but for RAK811, the internal pull-up (or pull-down) for gpio input pin are not working wit RUI, and that was corroborate by RAK wireless, so there’s no other solution for me to use external pull-up resistors for button input switches.
I detected that, when got spurious external interrupt firing without pressing any push button.
@alnunez Thanks for your reply but my problem is the gpio doesn init always the status response is RUI_STATUS_PARAMETER_INVALID so the pin doesn’t work inclusive with external resistor
Thanks
Did you tried with another pin? just to test if initialization returns OK with any other pin. I’m not 100% sure but seems to me from the RAK4200 datasheet, that all disponible i/o pins have already a “predefined” serial i/o behavior (uart,i2c,spi,swio). I already did (and sort of works) an application using push buttons and external interrupts for RAK811 with RUI, but as stated by @nmcc seems like porting RUI code from RAK811 to RAK4200 isn’t a friendly task.
Yes I tried with other pins, the problem is I have a RAK4200 with ol firmware and work perfect but with the last update of the firmware my new RAK4200 doesn work always return RUI_STATUS_PARAMETER_INVALID