Jewelbots/arduino-library

Name: arduino-library

Owner: Jewelbots

Description: This is the arduino library that works with the Jewelbots device

Created: 2016-10-20 15:26:36.0

Updated: 2018-01-04 20:00:50.0

Pushed: 2018-02-19 22:46:15.0

Homepage: null

Size: 1096640

Language: C

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Jewelbots Library for Arduino IDE Development

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.

Requirements

  1. A Jewelbot device!
  2. PC with one of the following OS:
  3. Mac OSX 10.11.4 (current tested version), OSX 10.9.x, 10.10.x should also work.
  4. Windows 10 (current tested version), Windows 7 and 8.x should also work.
  5. Arduino IDE version 1.6.9 (current tested version).
  6. A Micro-B USB cable.

Getting Started

Install Board Package Add-on
  1. Get Arduino IDE from Arduino website and install it to your PC.

  2. Start the IDE and from the Menu, click “Preference…“, add the following line to “Additional Boards Manager URLs”

    s://jewelbots.github.io/arduino-library/package_jewelbots_index.json  
    
  3. Open the Boards Manager from the Menu: Tools -> Board “…” -> Boards Manager.

  4. Search for “Jewelbots”, select the “Jewelbots Arduino Library” and click “Install”.

  5. Wait for the library to finish installation and click “Close”.

  6. Go to Tools -> Board “…” dropdown and select the “JWB nRF51822” board.

  7. Make sure the serial port is selected from Tools -> Port.

  8. 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.

  9. Test the “hello world” sketch below:

lude "JWB_API.h"

 setup() {
 put your setup code here, to run once:
eathe_all(1);


 loop() {
 put your main code here, to run repeatedly:
imation animation;
imation.jewelbots_logo();


 button_press() {
 put code here to run whenever the Magic Button is pressed:
imation animation;
imation.breathe_single_color(BLUE);

If you would like to contribute to this library, you can get started in the Wiki


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.