how to use USR SW2 Button
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-29 6:09 AM
hi,
how can I get the user button event over the wrapper.cs / SDK ? I need it for my application. regards Alex- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-30 4:20 AM
ok question version 2.0:
In the Firmware of iNEMO there is the iNEMO_Button.c there is the method: uint32_t iNEMO_Button_Get_State(Button_TypeDef Button) { return GPIO_ReadInputDataBit(BUTTON_PORT[Button], BUTTON_PIN[Button]); } how can I get the state in the iNemo C/C++ console demonstration? PLEASE help!- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-30 6:31 AM
ok if that isnt possible I had the idea to
to replace the pressure value with the button state value in the firmware but i didnt find the part where the pressure sensor send data to via VCOM- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-30 6:42 AM
You can provide a new frame with a new MexId in the protocol and get it with the INEMO2_SendFrameBase defined in the .h of the inemoV2 sdk; Or a more fast way could be the usage of trace command. Send a trace massage frame when the button is pressed, you can get it with the INEMO2_GetTrace function available in the .h.
ps please, do not spam your question in other post, with different subject.
Thanks and Best Regards iNEMO Team- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2011-09-30 8:31 AM
thank you very much Fabio!
sorry for that spamming! I want to try it with the trace. But I don't have a Idea how to send a trace message when button is pressed and where to implement it (in main.c ?). regards Alex