Wall mounted 'mood light'
-
hello,
i've problem with the sketch :+1 :sketch_dec08a.ino: In function 'void setup()': sketch_dec08a:89: error: 'S_INFO' was not declared in this scope gw.present(RGB_TextColorChild, S_INFO, "RGB Wall textcolor 0"); ^ sketch_dec08a.ino: In function 'void incomingMessage(const MyMessage&)': sketch_dec08a:308: error: 'V_TEXT' was not declared in this scope gw.request(RGB_TextColorChild, V_TEXT); ^ sketch_dec08a:313: error: 'V_TEXT' was not declared in this scope if (message.type == V_TEXT) { // if get color from text child ^ exit status 1 'S_INFO' was not declared in this scope -
@mickaelr30 , did you ever get this working with 1.5?
i've got the upgrade instructions, but struggling to reverse it so it works with my current setup. Don't think i'm quite ready to upgrade all my nodes to dev quite yet.
-
@mickaelr30 , did you ever get this working with 1.5?
i've got the upgrade instructions, but struggling to reverse it so it works with my current setup. Don't think i'm quite ready to upgrade all my nodes to dev quite yet.
@Adam-McCartney add these lines in the header and you will have it working with the production version...
// V_TEXT & V_INFO when not using the DEVELOPMENT version const byte V_TEXT = 47 ; // values taken from development edition MyMessage.h const byte S_INFO = 36 ; -
@AWI said:
// V_TEXT & V_INFO when not using the DEVELOPMENT version
const byte V_TEXT = 47 ; // values taken from development edition MyMessage.h
const byte S_INFO = 36 ;awesome, thanks!
I'm more of a butcher than a surgeon. I can quite happily take things apart, but fixing things usually goes right over my head!!
-
I really love this project.
May I can include it in all of my sensors (doorbell, thermostat, alarm,...).Really sounds great, thanks
-
Is there a way to get your wiring schema ?
-
Is there a way to get your wiring schema ?
@Mehdi-HAMIDA There is nothing to it. A standard MySensors node (5v) with the strip connected to D5 and a button between ground and D4.
const int stripPin = 5 ; // pin where 2812 LED strip is connected const int buttonPin = 4 ; // push button -
@Mehdi-HAMIDA There is nothing to it. A standard MySensors node (5v) with the strip connected to D5 and a button between ground and D4.
const int stripPin = 5 ; // pin where 2812 LED strip is connected const int buttonPin = 4 ; // push button@AWI OK, just ordered the PCB
thx -
@AWI: Won't this part of your sketch create sort of an endless loop?
case RGB_TextColorChild: // Text color from controller if (message.type == V_TEXT) { // if get color from text child gw.request(RGB_TextColorChild, V_TEXT);@mfalkvidd Good observation. Probably the the result of an 'efficient' copy/paste :flushed:
The line
gw.request(RGB_TextColorChild, V_TEXT);I there with no reason, can be deleted...
-
Im building the same light, but i use 12v LED strips controlled with mosfets. Is it possible to use the same scetch?
-
Im building the same light, but i use 12v LED strips controlled with mosfets. Is it possible to use the same scetch?
@Tore-André-Rosander If you use standard 12v strips it won't work as such. The ws2812/11 chips in the strip used make it possible to address the individual led's.
-
@Tore-André-Rosander If you use standard 12v strips it won't work as such. The ws2812/11 chips in the strip used make it possible to address the individual led's.
@AWI Is this code for version 1.5?
Im trying to compile it for the dev (v2) but i get a lot of errors.
Mostly alot of code that "was not declared in this scope".EDIT: Just found your link to the "Conversion guide", will have look at it!