Community
cancel
Showing results for 
Search instead for 
Did you mean: 
CChri35
New Contributor II
916 Views

Possible to simulation GPIO events (button press)?

Jump to solution

Hi!

Is it possible to simulate the GPIO event which occurs if the button is pressed?

0 Kudos
1 Solution
idata
Community Manager
47 Views

Hi Christoph.P,

 

 

That's not possible. Actually, things that require the hardware side (a button for example) cannot be simulated. Anyhow, if you want to test the part of the code that will be executed after the button is pressed, you could use an if statement set to TRUE and locate that part of the code under it. You won't be able to test the GPIO event itself, but you could test the code that should be executed after the event occurs.

 

 

Regards,

 

Diego

View solution in original post

1 Reply
idata
Community Manager
48 Views

Hi Christoph.P,

 

 

That's not possible. Actually, things that require the hardware side (a button for example) cannot be simulated. Anyhow, if you want to test the part of the code that will be executed after the button is pressed, you could use an if statement set to TRUE and locate that part of the code under it. You won't be able to test the GPIO event itself, but you could test the code that should be executed after the event occurs.

 

 

Regards,

 

Diego

View solution in original post

Reply