Skip to content

Overview

Advanced Topic Skip if you’re new, explore when you’re ready.

Bottango provides callbacks in the BottangoArduinoCallbacks.cpp file that allow you to input your own logic at various stages in the lifecycle of an effector or the firmware itself.

In order to add your own logic, you’ll modify the various methods in the “BottangoArduinoCallbacks.cpp” file. This chapter assumes you’re comfortable writing basic C++ code.

If you are wanting to insert your own code or make otherwise new functional changes to the Bottango driver, when in doubt, add the code to the callbacks file rather than trying to insert it in other source files or integrate the Bottango driver in whole into another set of functionality. It’s a rare circumstance where what you need shouldn’t be added to the Callbacks file rather than modifying the source. Bottango’s firmware isn’t designed to act as an external library in your sketches, but rather gives places for you to insert your own logic into it.

Screenshot: Callbacks