Hi! Can i just ask help? What seems to be the problem in my sketch? I can't seem to find the error
Color_Sensor1.ino (2.49 KB)
Hi! Can i just ask help? What seems to be the problem in my sketch? I can't seem to find the error
Color_Sensor1.ino (2.49 KB)
What seems to be the problem in my sketch? I can't seem to find the error
You are going to need to give us more than this to go on. Does the code not compile? Not link? Not upload? Not do what you want?
I can't seem to find the error
That's alright - the compiler found it for you - it even highlighted it for you.
Wire.write(I2C_ADDR, command);
error: invalid conversion from 'byte' to 'const uint8_t*'
Hint: byte command;
AWOL:
I can't seem to find the error
That's alright - the compiler found it for you - it even highlighted it for you.
Wire.write(I2C_ADDR, command);
error: invalid conversion from 'byte' to 'const uint8_t*'
Hint:
byte command;
Why? What's wrong with byte command;
AWOL:
Wire - Arduino Reference
I still don't get it. Sorry sir, i'm just new here
I still don't get it. Sorry sir, i'm just new here
The Wire.write() method does not take an address. That was defined in the Wire.beginTransmission() call.
PaulS:
The Wire.write() method does not take an address. That was defined in the Wire.beginTransmission() call.
So, what should i do then?
So, what should i do then?
The pages I have linked have examples of how to use the Wire library.
You could look at them, to see what is different to your approach.