Cognitive Sentiment icon Cognitive Sentiment Detects positive sentiment percentage of input text using cognitive ML; returns $SentimentPercentage, shows face, graph, and status for analysis. Try it →
USA
Asked — Edited

I2cwrite Command For Blinkm

I hope someone can help me with this. I've been tinkering with my MinM light and Im trying to adjust the playback of the built in light script to a shorter time loop. On page 22 of the blinkM datasheet it says to send command 't', (-128 to 128). My command on EZscript would be i2cwrite (0x12,'t', -100) to shorten time. However a negative number isnt recognized as valid. Have I skipped over some important step so that this is a valid arguement?


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#1  

0 would be 128, a negative number would be 128 - 100

8 bits only allows for 256 possible positions (0-255). So if the datasheet mentions a number between -128 and 128, then they mean that 0 would equal 128

-128 = 0 0 = 128 128 = 255

:)

#2  

Ah!! Thank you DJ! I new I was missing something.