Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wire library missing , error compiling #3

Open
teldrive opened this issue Oct 30, 2022 · 2 comments
Open

wire library missing , error compiling #3

teldrive opened this issue Oct 30, 2022 · 2 comments

Comments

@teldrive
Copy link

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

@SorX14
Copy link
Owner

SorX14 commented Oct 30, 2022

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!

@teldrive
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants