jewelbots / arduino-library Goto Github PK
View Code? Open in Web Editor NEWThis is the arduino library that works with the Jewelbots device
License: MIT License
This is the arduino library that works with the Jewelbots device
License: MIT License
Given the following program
#include <Arduino.h>
LED led;
bool ran;
void setup() {
}
void loop() {
if (!ran) {
led.on(1, "blue", 100000);
ran = true;
}
}
The blue light will blip and then instantly goes dark, there is no delay.
From the forums, there is a request for being able to call the buzzer with a specified buzz duration.
From this thread: http://alpha.jewelbots.com/t/finer-control-of-buzzer/254
When I updated Arduino IDE to this: https://jewelbots.github.io/arduino-library/package_jwb_staging_index.json the Jewelbots board entry disappeared, so I opened it in a browser and discovered that it's a 404
Given the following code
#include <Arduino.h>
Animation animation;
void setup() {
animation.rainbows();
}
The setup() code does not appear to run
Before I spend a significant amount of time deep diving through the repository, is there anything known reason or possible explanation for the present size of the repository? If so, are there any cursory thoughts on how to address?
When a sketch is uploaded, an error message occurs that is not an actual error. This is confusing for the user. The message is
Failed to execute script __main__
Explanation from @davison-sm here:
The tool is here: https://github.com/NordicSemiconductor/pc-nrfutil
There are multiple branches with different versions. Master is the updated tool for SDK 12 and will not work for us as we haven't upgraded to 12 yet. The branch that will work for us is "0_5_2".
The code works fine when installed normally in the system using "python setup.py install". This nrfutil tool runs perfectly and doesn't give the error message. But it is installed on the system using links, so the executable can't be distributed on our github.
The standard method of making a distributable executable would be "pyinstaller --onefile setup.py". The installer builds correctly, but gives an error about a broken import module command when it is run.
To make the executable that we are using now, run pyinstaller on the main.py file in the nordicsemi folder. This executable runs but has the annoying error message.
I was working on a project fully expecting to be able to call millis
, a function that
the number of milliseconds since the Arduino board began running the current program.
Unfortunately the code does not compile because
error: 'millis' was not declared in this scope
It would be great if the millis
function would be provided as a function.
Is there any document that provides developer guidance for this library? Specifically, how do I use the repo master (or feature branch) as the source in Arduino IDE? When working with other Arduino libraries, that are board specific, the board definitions that are installed via Tools -> Board -> Boards Manager
are decoupled from the libraries installed via Sketch -> Include Library -> Manage Libraries
. That enables placing a development repo in the ~/Documents/Arduino/libraries/
directory
I think I tried to run before I could walk (I got excited hehe, my fault) - but I connected via BLE to the Jewelbot bracelet (not the dev board) and I didn't get any services or characteristics back (but did get a list of service UUIDs ['180d', '1814']
). Again I'm jumping ahead, but are these set up manually via the sketch file uploaded to the device? If so, I can dig around and have a go at that.
In the meantime, I'll try to be more helpful by uploading the example sketch on both the dev board and the bracelet π
Hello! I'm running into an error attempting to update my Jewelbot's firmware.
Arduino: 1.6.13 (Linux), Board: "Jewelbots Firmware Update"
java.io.IOException: Cannot run program "/home/caitlin/.arduino15/packages/Jewelbots_Firmware_Update/hardware/JWBFirmware/1.0.0/JWBLoader_linux": error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
at java.lang.Runtime.exec(Runtime.java:620)
at java.lang.Runtime.exec(Runtime.java:485)
at processing.app.helpers.ProcessUtils.exec(ProcessUtils.java:11)
at cc.arduino.packages.Uploader.executeUploadCommand(Uploader.java:129)
at cc.arduino.packages.uploaders.SerialUploader.uploadUsingPreferences(SerialUploader.java:207)
at cc.arduino.UploaderUtils.upload(UploaderUtils.java:78)
at processing.app.SketchController.upload(SketchController.java:709)
at processing.app.SketchController.exportApplet(SketchController.java:682)
at processing.app.Editor$DefaultExportHandler.run(Editor.java:2189)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
at java.lang.ProcessImpl.start(ProcessImpl.java:134)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
... 10 more
An error occurred while uploading the sketch
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
Sure enough, the file doesn't exist:
caitlin@caitlin-IdeaPad-S210-Touch:~/.arduino15/packages/Jewelbots_Firmware_Update/hardware/JWBFirmware/1.0.0$ ls -l
total 13492
-rw-r--r-- 1 caitlin caitlin 393 Nov 22 10:09 boards.txt
drwxr-xr-x 3 caitlin caitlin 4096 Nov 22 10:09 cores
-rw-r--r-- 1 caitlin caitlin 7712620 Nov 22 10:09 JWBLoader.exe
-rwxr-xr-x 1 caitlin caitlin 5900351 Nov 22 10:09 JWBLoader_osx
-rw-r--r-- 1 caitlin caitlin 124436 Nov 22 10:09 JWB_update_1_01a.zip
-rw-r--r-- 1 caitlin caitlin 48722 Nov 22 10:09 JWB_update_1_01b.zip
-rwxr-xr-x 1 caitlin caitlin 247 Nov 22 10:09 JWB_Update_mac.sh
-rw-r--r-- 1 caitlin caitlin 257 Nov 22 10:09 JWB_Update_win.bat
-rw-r--r-- 1 caitlin caitlin 3941 Nov 22 10:09 platform.txt
-rw-r--r-- 1 caitlin caitlin 0 Nov 22 10:09 programmers.txt
drwxr-xr-x 3 caitlin caitlin 4096 Nov 22 10:09 variants
More details about my system:
caitlin@caitlin-IdeaPad-S210-Touch:/$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial
caitlin@caitlin-IdeaPad-S210-Touch:/$ uname -a
Linux caitlin-IdeaPad-S210-Touch 4.4.0-45-generic #66-Ubuntu SMP Wed Oct 19 14:12:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Please let me know if I can answer any questions or be of any further help.
The new colors are great! The breathing animation only contains the old ones, the animations code needs to be updated to make sure users can use breathe with the new colors.
This code exists in the animations.cpp and animations.h files.
Was interested in forking the repo and playing around. On setup, noticed the URL for the staging pkg JSON is a 404.
https://jewelbots.github.io/arduino-library/package_jwb_staging_index.json
also tried a few guesses like
https://jewelbots.github.io/arduino-library/package_jewelbots_staging_index.json
https://jewelbots.github.io/arduino-library/package_jewelbots_staging.json
all 404's
The friendship coding board has a random number function that is not also on this board. It's called get_rand_int. It would be great to have it on this board as well!
MacBook Pro (Retina, 15-inch, Mid 2015)
macOS Sierra v10.12.5
The only solution that seems to work is the 2 min timeout of the uploading mode(I have not been able to test the reset button because I donβt have anything small enough around me that will fit)
Please try this yourself and feel free to try to change it up a little bit to see if there are one than one way of doing this and if this is only happens on mac or it happens on macs, windows and linux
The "hello world" sketch on the main readme fails to compile with the error "'class LED' has no member named 'on'". The example at https://github.com/Jewelbots/arduino-library/blob/master/jewelbots_nRF51822_board_v100/Examples/JWB_blank/JWB_blank.ino does compile, so either that should get moved up to the main page, or the existing example should be updated to reference turn_on_all
or some other method that exists.
Not here!
I'm filing this separately because I'm not sure if it's a dupe of #1. If it is, then just close this.
Failed to execute script main
Upgrading target on /dev/cu.usbserial-DB00W8D4 with DFU package /private/var/folders/xz/k2lxgs3s43180_tjwn1v_kwc0000gn/T/arduino_build_939294/jewelbots_blink.ino.zip. Flow control is disabled.Starting DFU upgrade of type 4, SoftDevice size: 0, bootloader size: 0, application size: 19572
Sending DFU start packet, afterwards we wait for the flash on target to be initialized before continuing.
Timed out waiting for acknowledgement from device.Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.
Possible causes:
- bootloader, SoftDevice or application on target does not match the requirements in the DFU package.
- baud rate or flow control is not the same as in the target bootloader.
Failed to execute script main- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
I tried this:
- target is not in DFU mode. If using the SDK examples, press Button 4 and RESET and release both to enter DFU mode.
No luck!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.