Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kekyo/boostforarduino
boost library for Arduino
https://github.com/kekyo/boostforarduino
Last synced: 14 days ago
JSON representation
boost library for Arduino
- Host: GitHub
- URL: https://github.com/kekyo/boostforarduino
- Owner: kekyo
- License: bsl-1.0
- Created: 2017-12-31T12:48:21.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-03-27T02:37:36.000Z (over 3 years ago)
- Last Synced: 2024-05-01T12:49:36.660Z (7 months ago)
- Language: C++
- Size: 107 MB
- Stars: 10
- Watchers: 4
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE_1_0.txt
Awesome Lists containing this project
README
# boost library for Arduino
## What's this?
* Imported boost library at version 1.66.0
* http://www.boost.org/users/history/version_1_66_0.html
* Unchanged from all original files.
* Prebuild libraries not included. (Yes, lack some codes, ex: boost.asio)# How to use
### Installation
* Clone from GitHub: (You can use your favorite git client)
```
cd ~/Documents/Arduino/libraries/
git clone https://github.com/kekyo/BoostForArduino
```* And you can append your compiler toolchain option (At platform.txt) enabling c++11 specification then better results.
* Example: Seeed WioLTE board (On Arduino IDE for Windows)
* Located: `$HOME\AppData\Local\Arduino15\packages\Seeeduino\hardware\Seeed_STM32F4\1.1.2\platform.txt`Original line:
```
compiler.cpp.flags=-c -g -Os -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
```To insert '-std=gnu++11' option:
```
compiler.cpp.flags=-c -g -Os -std=gnu++11 -w -MMD -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -fno-rtti -fno-exceptions -DBOARD_{build.variant} -D{build.vect} -DERROR_LED_PORT={build.error_led_port} -DERROR_LED_PIN={build.error_led_pin}
```### Ready: Reference from your sketch
* You can reference boost headers from your sketch.
* You have to rename boost header path separator from "/" to "_".```
// Rename path separator.
//#include
#include
```Enjoy!!
# Examples
Thank you contributing, the [examples](examples/) directory contains example sources.
If you can share your code, please send PR and welcome!# License
* Boost license, see [LICENSE](LICENSE_1_0.txt) file.
* There're owning license each example code, see the source code header.