Greece
Asked — Edited

Question About Blinkm

Hello Forum from Greece:)

I need your help about BLINKM.

I want to write a script but i can't, i found the script command:

I2CWrite(0,0x09,?) What is the correct command?

I want to use BLINKM, when it found a red object then lights Red.


ARC Pro

Upgrade to ARC Pro

Subscribe to ARC Pro, and your robot will become a canvas for your imagination, limited only by your creativity.

United Kingdom
#1  

Section 3 of the datasheet covers the commands.

Looking at it you need to use;


# Set BlinkM to red
I2CWrite(0,0x09,n,0xff,0x00,0x00)

#2  

Thanks Rich for the replay. It works, I am going to read the data sheet

Thanks again.

#3  

Hello forum, I am confused confused with BLINKM

I wrote this code

I2CWrite(0,0x09,n,0xff,0x00,0x00) for red color, but when i run the code i saw this message

Start 1: I2CWrite(0,0x09,n,0xff,0x00,0x000) > Error on line 1: Missing String Quotes or Invalid Expression: n Done (00:00:00.0380022)

I did somethig wrong?

"I did the right connection with the controller".

United Kingdom
#4  

The EZ-Script syntax changed a few weeks/months ago. Any text must be in quotes.

Try

I2CWrite(0,0x09,"n",0xff,0x00,0x00)

or try converting the ascii to hex with

I2CWrite(0,0x09,0x6e,0xff,0x00,0x00)
#5  

Ok

I didn't know that

Thanks Rich I am going to try

#6  

Yes , the change is "n" .