Recent activity
Subscribe to this feed
Bruce shared an idea in ThingM on October 13, 2008 11:26:
Resetting a BlinkMI tried to reset by BlinkM so that it runs the default script. This isn't quite right. Perhaps someone can offer a better set of values.
May I ask that we get a Reset.pde in the example scripts?
Todbot's rule #1, ya know....
------------------------------
#include "Wire.h"
#include "BlinkM_funcs.h"
void setup()
{
byte blinkm_addr = 0x09;
blinkm_script_line script_lines[] = {
{ 1, {'f', 10,0x00,0x00 }}, // set fade speed
{ 1, {'t', 127,0x00,0x00 }}, // set time adjust
{ 1, {'c', 0xff,0xff,0xff }}, // fade to white
{ 1, {'c', 0xff,0, 0 }}, // fade to red
{ 1, {'c', 0, 0xff,0 }}, // fade to green
{ 1, {'c', 0, 0, 0xff }}, // fade to blue
{ 1, {'c', 0, 0, 0 }}, // fade to BLACK
};
byte script_id = 0; // can only write to script 0
byte script_len = 7; // number of lines in script
byte script_rep = 10;
BlinkM_beginWithPower();
// comment this out if you don't want to reset the address of your BlinkM
BlinkM_setAddress( blinkm_addr );
Serial.begin(19200);
byte rc = BlinkM_checkAddress( blinkm_addr );
if( rc == -1 )
Serial.println("\r\nno response");
else if( rc == 1 )
Serial.println("\r\naddr mismatch");
Serial.println("writing script...");
BlinkM_writeScript( blinkm_addr, script_id, script_len ,script_rep,
script_lines );
}
void loop()
{
}
Bruce replied on October 11, 2008 23:53 to the question "Compile/verify error with BlinkMCommunicator" in ThingM:
I have some more information. I can get BlinkMScriptWriter2 BlinkMCommunicator and BlinkMCommunicator running and talking to the serial port. But I cannot get BlinkMTester to communicate to the serial port.
I even added a Serial.println and Serial.flush as the first command in setup() and I never see it. Linux 2.6.24-19-generic, Arduino Diecimila. Arduino 0011.
Bruce replied on October 11, 2008 20:03 to the question "Compile/verify error with BlinkMCommunicator" in ThingM:
Bruce replied on October 11, 2008 10:53 to the question "Compile/verify error with BlinkMCommunicator" in ThingM:
Bruce replied on October 11, 2008 10:43 to the question "Compile/verify error with BlinkMCommunicator" in ThingM:
I got it to work. I downloaded a fresh copy, copied it into a new location, and tried again. I'm not sure why I had a problem the first time.
But I was using Arduino 0011.
I have some more questions. I downloaded the Communicator. This is loaded into the microprocessor on the Arduino. When I load a script for the BlinkM, do I download that to the I/O board? If I do, does it change the default script? if it does, how do I put the default script back? Shouldn't one of the examples do this? It's always a good idea to have a mechanism to put the device back to the way it comes from the manufacturer for users like me who are afraid of putting it into a condition when I can;t recover.
Bruce asked a question in ThingM on October 11, 2008 02:02:
Compile/verify error with BlinkMCommunicatorI'm trying to compile the BlinkMCommunicator in Arduino under Linux. It's not working?
I get the error In function ‘void BlinkM_writeScript(byte, byte, byte, byte, int*)’:
Where do I unzip the examples? Do I import any libraries? I got past the error saying it couldn't find the file BlinkM_funcs.h, but I'm not sure I did it the right way...
Bruce asked a question in ThingM on October 08, 2008 11:07:
Two inputs?I'd like to build a stand-alone smart LED that has two inputs to cause two different sequences.
I know the BlinkM has one input. Is there a way to get two?
Loading Profile...
