Example
At the moment, there's already a ready-to-use project that uses the Harp FlyPAD for data acquisition here. Follow the instructions in the repository's README.md to install the project and learn how to use it.
If you want to learn how the Bonsai workflow from that project works, click here to go to the explanation hosted in the CF.Bonsai website.