Updated README with info on setting partition size, and changed the example to remove references to the Hackwatch platform.

This commit is contained in:
James Hudson 2020-01-27 14:54:10 +11:00
parent 4de50f84ce
commit 9e391c82ed
2 changed files with 11 additions and 8 deletions

View File

@ -48,11 +48,16 @@ notifications.setConnectionStateChangedCallback(onBLEStateChanged);
notifications.setNotificationCallback(onNotificationArrived);
```
Note that the Espressif BLE libraries are very large, so you may need to increase your partition scheme to "Large" in the Arduino IDE.
See the ble_connection example for a more fully-featured example.
To see a real-world project, https://github.com/jhud/hackwatch uses this library.
## History / Acknowledgements
Based on the work of CarWatch, Hackwatch, and S-March. This project was created to hide the complicated BLE notification internals behind a standard, easy-to-use Arduino library.
To see a real-world project, https://github.com/jhud/hackwatch uses this library.

View File

@ -12,18 +12,16 @@
// Or feel free to add your own board layout for your specific hardware.
// See the ESP32 pinout to choose a free GPIO pin on your hardware.
// An inexpensive and easy-to build open-source smartwatch platform https://github.com/jhud/hackwatch
#define HARDWARE_HACKWATCH
#define HARDWARE_STANDARD
#ifdef HARDWARE_HACKWATCH
#define BUTTON_A 25 // left button
#define BUTTON_B 26 // center button
#define BUTTON_C 27 // right button
#ifdef HARDWARE_STANDARD
#define BUTTON_A 25 // left button - use this GPIO pin
#define BUTTON_B 26 // center button - use this GPIO pin
#define BUTTON_C 27 // right button - use this GPIO pin
#else
#error Hardware buttons not supported!
#endif
//////////
// Example code begins