blinkm addressing problem.. (try it on your blink)
hi everyone,
so having issue trying readdress blinkm, i've tried on maxm, guess firmware similar point.
so, started own bit of code sort out knew , didnt know i2c, fair bit - can write blink's no problem. have 3 pots hooked , can control rgb directly. nothing new, know, exercise.
so next step control multiple blinks, independently. can't addresses stick though. here edited version of stock code in examples. doing silly, sending hex instead of int, or strange going on... appreciated.
thanks -- jon
so having issue trying readdress blinkm, i've tried on maxm, guess firmware similar point.
so, started own bit of code sort out knew , didnt know i2c, fair bit - can write blink's no problem. have 3 pots hooked , can control rgb directly. nothing new, know, exercise.
so next step control multiple blinks, independently. can't addresses stick though. here edited version of stock code in examples. doing silly, sending hex instead of int, or strange going on... appreciated.
code: [select]
#include "wire.h"
#include "blinkm_funcs.h"
byte blinkm_addr = 0x08;
byte blinkm_globaladdr = 0x00;
int temp;
void setup()
{
serial.begin(19200);
serial.println("blinkmfactoryreset");
blinkm_beginwithpower();
delay(100);
serial.print("setting i2c address...");
blinkm_setaddress( blinkm_addr );
serial.println(blinkm_addr, hex);
delay(500);
serial.print("verifying i2c address, sent 'correct' address...");
temp = blinkm_checkaddress( blinkm_addr ); //sent should be
serial.println(temp,dec);
delay(500);
serial.print("verifying i2c address, sent global address...");
temp = blinkm_checkaddress( blinkm_globaladdr );
//sent global, should return matching
serial.println(temp,dec);
serial.println("did work?");
}
void loop()
{
digitalwrite(13, high); // flash arduino led fun
delay(300);
digitalwrite(13, low);
delay(300);
}
thanks -- jon

...as continuation, looked inside blinkm_funcs.h , uncommented of debug messages, no change, still having address problem.
here response, sorry bit of mess
here response, sorry bit of mess
code: [select]
blinkmfactoryreset
setting i2c address...8
verifying i2c address, sent 'correct' address...received addr: 0x80
verifyiblinkmfactoryreset
setting i2c address...8
verifying i2c address, sent 'correct' address...received addr: 0x80
verifying i2c address, sent global address...no response, that's not good
-1
did work?
Arduino Forum > Forum 2005-2010 (read only) > Software > Interfacing > blinkm addressing problem.. (try it on your blink)
arduino
Comments
Post a Comment