Exporting a Button Configuration from Haptic Studio to the SDK

Question:

How do I export a button configuration I created from Haptic Studio and import it in the SDK?

 

Answer:

Haptic Studio offers exporting of button configuration as code snippet which can be copy-pasted into SDK application code.

Go to the Button tab and select the button configuration to use, then click the export button.A dialog will appear; click the Copy button, then paste the copied snippet into your code.

In the SDK file, navigate to the buttonHS example or create a new application based on this example. You’ll find more detailed instructions along with screenshots of these operations in that readme.md file.

Note for the button to work correctly, you will also need the configuration profile. When connecting the devkit, select the appropriate board and click on the configuration button. The configuration code snippet can be exported the same. Again, consult the SDK readme.md documentation for details.


Leave a comment