https://github.com/yining1023/p5-ble-examples-archived
Examples for p5.ble.js
https://github.com/yining1023/p5-ble-examples-archived
Last synced: 7 months ago
JSON representation
Examples for p5.ble.js
- Host: GitHub
- URL: https://github.com/yining1023/p5-ble-examples-archived
- Owner: yining1023
- Created: 2017-03-09T04:44:06.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-12-26T06:48:39.000Z (almost 7 years ago)
- Last Synced: 2025-01-21T04:26:30.924Z (9 months ago)
- Language: C++
- Size: 341 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# p5-ble-examples-archived
Examples for p5.ble.js# Example 1 Read Accelerometer(Arduino/Genuino 101)
This example gets Arduino/Genuino 101 accelerometer values through Bluetooth and shows the values in the Browser1. Go to `arduino101_sketches` folder, and upload arduino sketch `curie_accelerometer.ino` to Arduino/Genuino 101 board
2. Go to `p5_sketches/example1` folder, Start a simple HTTP server `$ python -m SimpleHTTPServer`
3. Go to `localhost:8000`
4. Click `Connect` button, select `CurieIMU`, Click `Pair` button
5. Click `Start Notifications` button, and X-Axis, Y-Axis, Z-Axis values will be displayed in the console
# Example 2 Read Button Value(SensorTag)
# Example 3 Write LED Value(Arduino/Genuino 101)