@@ -69,15 +69,28 @@ This Arduino Core does **not** contain any BLE functionality. It has been design
6969
7070## Installing
7171
72- ### Board Manager
72+ ### Platformio
73+ 1 . [ Install PlatformIO] ( https://platformio.org )
74+ 2 . Create PlatformIO project and configure a platform option in [ platformio.ini] ( http://docs.platformio.org/page/projectconf.html ) file:
75+
76+ ``` ini
77+ [env]
78+ platform = https://github.com/h2zero/platform-n-able.git
79+ framework = arduino
80+ lib_deps = h2zero/NimBLE-Arduino@^1.4.0
81+ board = ...
82+ ...
83+ ```
84+
85+ ### Arduino Board Manager
7386 1 . [ Download and install the Arduino IDE] ( https://www.arduino.cc/en/Main/Software ) (At least v1.6.12)
7487 2 . Start the Arduino IDE
7588 3 . Go into Preferences
7689 4 . Add ``` https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json ``` as an "Additional Board Manager URL"
7790 5 . Open the Boards Manager from the Tools -> Board menu and install "Arm BLE Boards"
7891 6 . Select your board from the Tools -> Board menu
7992
80- ### From git (for core development)
93+ #### From git (for core development)
8194 1 . Follow steps from Board Manager section above
8295 2 . ``` cd <SKETCHBOOK> ``` , where ``` <SKETCHBOOK> ``` is your Arduino Sketch folder:
8396 * OS X: ``` ~/Documents/Arduino ```
@@ -109,10 +122,10 @@ This Arduino Core does **not** contain any BLE functionality. It has been design
109122## Configuration (optional)
110123You can change the configuration for many settings by creating a ` build_opt.h ` file in your sketch folder.
111124In here you can set compile time definitions for settings that will be included directly on the command line.
112- For example: ` '-DCONFIG_MAIN_TASK_STACK_SIZE=2048 ' ` This will set the main task stack size to 2048 bytes.
125+ For example: ` '-DCONFIG_MAIN_TASK_STACK_SIZE=512 ' ` This will set the main task stack size to 512 words ( 2048 bytes) .
113126
114127### Configuration option list
115- * ` CONFIG_MAIN_TASK_STACK_SIZE ` - sets the size ** in bytes ** of the main loop task.
128+ * ` CONFIG_MAIN_TASK_STACK_SIZE ` - sets the size ** in 32bit words ** of the main loop task.
116129 * ` CONFIG_RTOS_TICK_RATE_HZ ` - set the tick rate for FreeRTOS (default 1024).
117130 * ` CONFIG_RTOS_MAX_PRIORITIES ` - set the maximum priority level for FreeRTOS tasks.
118131 * ` CONFIG_RTOS_MIN_TASK_STACK_SIZE ` - set the minimum task stack size.
0 commit comments