HF-BNO08x  0.1.0-dev
Loading...
Searching...
No Matches
event_driven_callback_example.cpp File Reference

Event-driven callback example with step counter and tap detector. More...

#include "esp_log.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include <memory>
#include <stdio.h>
#include "../../../inc/bno08x.hpp"
#include "esp32_bno08x_bus.hpp"
Include dependency graph for event_driven_callback_example.cpp:

Functions

void app_main (void)
 

Detailed Description

Event-driven callback example with step counter and tap detector.

This example demonstrates:

  • Event-driven sensor callbacks
  • Step counter detection
  • Tap detector (single and double tap)
  • Gesture event handling
Note
This example runs independently on an I2C bus that only communicates with the BNO08x device. The I2C bus setup (GPIO4 SDA, GPIO5 SCL) mirrors the pcal95555/pca9685 examples for pin consistency.
Author
Nebiyu Tadesse
Date
2025

Function Documentation

◆ app_main()

void app_main ( void )