SorX14 / dali_master

DALI Master Particle library for use with LED-Warrior-14

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wire library missing , error compiling

teldrive opened this issue · comments

error: 'Wire' was not declared in this scope byte1 = Wire.read();
error: 'Wire' was not declared in this scope Wire.reset();

please what wire library do you use, standard arduino wire.h has not for example wire.reset or wire.speed

Check this out, the library was designed for Particle not arduino, but should work with this change: https://github.com/SorX14/dali_master#using-an-arduino

I haven't used this library for some time, and I don't have an arduino to test so best of luck!

Add:

#include "Arduino.h"
#include "Wire.h"

instead of:

#include "Particle.h"
#include "application.h"

in dali_master.h

Then you'll have to remove Wire.setSpeed() in dali_master.cpp and any reference to Wire.reset(). Making these changes allows it to compile, but I can't test any further than that.

Please submit a PR when you have a solution for others!

Thanks by reply, I removed Wire.setSpeed() Wire.reset() and finally compiled it, . Going to next step example "initialise" didn't work. Looking for workaround I tried to confirm my led-warrior-14 works and with this sample code https://forum.codemercs.com/viewtopic.php?t=1970 I have got a blinking effect, so conections and led warrior are fine. I think your library I is very well done, has bus state checking and it is necessary to work with bus dali, so still analyzing the issue that blocks the example code. stops on clearStatusRegister() I don't know why I obtain always in getstatus() the code 33 so program get halted on it because it detects that bus is not idle(00) at any time