Git Product home page Git Product logo

arduino-library's People

Contributors

bklang avatar davison-sm avatar ellieggalloway avatar glennblock avatar haydanek avatar loghorn avatar rachelwilsingh avatar rwaldron avatar sarajo avatar zosnap avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arduino-library's Issues

Delay code does not appear to be working

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.

LED function parameters are misleadingly named

in LED.h, the timing parameters for flash_single and flash_all are incorrectly named microseconds. They are actually expecting milliseconds.

compare LED.h to LED.cpp.

it's a minor issue, but was a little surprising when my daughter and i stumbled across it.

setup() function is not invoked

Given the following code

#include <Arduino.h>

Animation animation;

void setup() {
  animation.rainbows();
}

The setup() code does not appear to run

Repo size discussion (Presently 797.52 MB)

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?

Compile Issue with Error Message

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.

Feature Request: provide a millis function

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.

Developer Guidance?

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

BLE services / characteristics

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 😁

Error updating firmware on Ubuntu

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.

Bring the new colors over to the breathing animation

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.

error where JB locks up

MacBook Pro (Retina, 15-inch, Mid 2015)
macOS Sierra v10.12.5

  1. open a sketch, does not matter if its new file or user made sketch
  2. plug in your JB and try to upload your code WITHOUT putting the JB into the upload mode
    there will be an error
  3. click the verify button to verify your code(I had no errors what so ever when checking my sketch)
  4. put the JB into uploading mode
  5. try to upload your sketch
    it gives me the same error of step number 2. The JB does not exit out of uploading mode and no matter what I seem to do either on the JB or on the Arduino, The JB does not seem to react either to the sketch that is on it or the new sketch I tried uploading, in fact it seems to do nothing.

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

Consistent error seen when attempting to upload to JDB

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.