Coder Social home page Coder Social logo

tibbis / led-strip-homekit-driver Goto Github PK

View Code? Open in Web Editor NEW
47.0 7.0 6.0 12.67 MB

An RGB-LED strip driver that can be connected to a smart home with HomeKit using Raspberry Pi and Arduino.

License: Apache License 2.0

Eagle 24.34% Arduino 1.08% C++ 61.23% CSS 5.76% C 5.81% Python 0.38% Shell 0.26% Elixir 0.18% XSLT 0.95%
arduino raspberry-pi nrf24l01 homebridge homekit diy smarthome rgb-ledstrip pcb

led-strip-homekit-driver's Issues

Arduino code is not working

Hello,

I tried to Copy your Application, but I get the following Error message.
The Arduino Code can't upload to my UNO.
its saying "colour" is not declared
See the following.

thank you in advance
Andreas

Arduino: 1.8.7 (Mac OS X), Board: "Arduino/Genuino Uno"

homekit_arduino:77:24: error: expected ',' or '...' before 'colors'
void changeColor(int[3]colors, int[3]prevColors){
^
/Users/arv001/Desktop/homekit_arduino/homekit_arduino.ino: In function 'void loop()':
homekit_arduino:59:8: error: expected unqualified-id before '[' token
int[3] prevColors = [rPrev, gPrev, bPrev]; //array with previous color values
^
homekit_arduino:65:8: error: expected unqualified-id before '[' token
int[3] colors = [r,g,b]; //array with color values
^
homekit_arduino:71:17: error: 'colors' was not declared in this scope
changeColor(colors, prevColors);
^
homekit_arduino:71:25: error: 'prevColors' was not declared in this scope
changeColor(colors, prevColors);
^
/Users/arv001/Desktop/homekit_arduino/homekit_arduino.ino: At global scope:
homekit_arduino:77:24: error: expected ',' or '...' before 'colors'
void changeColor(int[3]colors, int[3]prevColors){
^
/Users/arv001/Desktop/homekit_arduino/homekit_arduino.ino: In function 'void changeColor(int*)':
homekit_arduino:79:15: error: 'colors' was not declared in this scope
int diffR = colors[0]-prevColors[0];
^
homekit_arduino:79:25: error: 'prevColors' was not declared in this scope
int diffR = colors[0]-prevColors[0];
^
exit status 1
expected ',' or '...' before 'colors'

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.