This library is designed to make coding the Jewelbots for Arduino easier for users. Installation instructions are below. If you would like to contribute, pull requests are welcome. Documentation is here and in the Wiki. Please feel free to ask us questions in Slack by signing up here.
- A Jewelbot device!
- PC with one of the following OS:
- Mac OSX 10.11.4 (current tested version), OSX 10.9.x, 10.10.x should also work.
- Windows 10 (current tested version), Windows 7 and 8.x should also work.
- Arduino IDE version 1.6.9 (current tested version).
- A Micro-B USB cable.
- Get Arduino IDE from Arduino website and install it to your PC.
- Start the IDE and from the Menu, click "Preference...", add the following line to "Additional Boards Manager URLs"
https://jewelbots.github.io/arduino-library/package_jewelbots_index.json
- Open the Boards Manager from the Menu: Tools -> Board "..." -> Boards Manager.
- Search for "Jewelbots", select the "Jewelbots Arduino Library" and click "Install".
- Wait for the library to finish installation and click "Close".
- Go to Tools -> Board "..." dropdown and select the "JWB nRF51822" board.
- Make sure the serial port is selected from Tools -> Port.
- Put your Jewelbots device in coding mode by holding down the button for two seconds. Either the charging light will go out or the device will flash purple depending on what version of the firmware you have. Coding mode lasts for two minutes.
- Test the "hello world" sketch below:
#include <Arduino.h>
LED led;
void setup() {
// Put your setup code here, to run once.
}
void loop() {
// Put your main code here, to run repeatedly:
led.on(1, "blue", 650);
}
If you would like to contribute to this library, you can get started in the Wiki