-
Notifications
You must be signed in to change notification settings - Fork 10
Feat ble prototype example #331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dev
Are you sure you want to change the base?
Conversation
- Added Bluetooth Files - Made edits to EmotiBit.h+.cpp - This build goes into bluetooth mode, does not stream
Update LEDS
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
This PR enables Bluetooth Low Energy (BLE) on the EmotiBit, adding the following functionality:
ARDUINO NOTE: If you are on Arduino, please set the partition table to Huge App
NOTE: This build does NOT have time syncing enabled so all data received does not account for start time/adjustments due to latency.
This PR allows users to press the side button on start up (same time frame to get into the debug mode) to switch the EmotiBit into bluetooth mode, which is signified by a faster blinking light. A synopsis of each change is outlined in the notes for reviewer. This code was built out with this arduino example here as an example.
Requirements
Issues Referenced
None
Documentation update
None - we are not publicly releasing this PR
Notes for Reviewer
EmotiBitBluetooth.h/.cpp
This is where all the bluetooth specific functions will live and was built with EmotiBitWifi as a blueprint.
EmotiBit.h/.cpp
EmotiBit_stock_firemware.ino
board_feather_esp32.ini
Setup Flow
Connections Flow
LED Speeds
Testing
All tests were run with Bluefruit Connect or nRF Connect which can be downloaded on the app store.
Results
Testing included the following feature tests. I also ensured that record begin/end would work as well.
Feature Tests
Shared files
Checklist to allow merge
master
DIGITAL_WRITE_DEBUG
= false (if set true while testing)Screenshots: