- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Hi!
Is it possible to simulate the GPIO event which occurs if the button is pressed?
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
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

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page