todbot / blink1-tool

Command-line tools and C library for blink(1) USB RGB LED
https://blink1.thingm.com/
Other
84 stars 15 forks source link

eeread and eewrite Returns 0 Constantly for all 0-255 addresses #64

Closed avdebut closed 9 months ago

avdebut commented 1 year ago

I'm using the blink1-tool and experiencing an issue with eeread and eewrite commands. They seem to function abnormally, consistently returning zero regardless of their operation.

The version information is as follows:

$ blink1-tool --version
blink1-tool version: v2.3.0-macosx, fw version: 204

Here are the document references I have been referring to:

It seems that it should not be all 0.

Could you please help understand why these commands are not operating as expected? Is there something else required to make them function correctly?

todbot commented 1 year ago

The eeread and eewrite commands are only valid for mk1 devices. What is your application?

avdebut commented 1 year ago

@todbot oh, as per the doc https://github.com/todbot/blink1/blob/main/docs/blink1-hid-commands.md, it said (1) mk1 devices or greater, i thought mk2 works as well.

for mk2 device, i need something to write custom info into the device, like notes for mk3 device. so, when the marked device is connected on computer, the app can figure out the very device.

todbot commented 1 year ago

Ah I see. Apologies, the mk2 doesn't have that ability. (The chip used on the mk2 doesn't have EEPROM nor flash that can be self-written like the one in the mk3)

avdebut commented 1 year ago

But blink1-tool --savepattern works on mk2 ❓ Doesn't it use Flash?

todbot commented 1 year ago

Apologies, I wasn't very precise in my wording. The chip in the mk2 has a small section of rewritable flash, just big enough for color patterns but not for notes or eeprom emulation.

todbot commented 9 months ago

Addressed by commit 92661e6