Giter VIP home page Giter VIP logo

Comments (6)

iklier avatar iklier commented on July 18, 2024

I've noticed at least on the handful of blink(1)mk2s that I have that it doesn't appear to save the pattern. If I run play 1 I get the same default pattern every time.

Basic steps are:

  1. Connect a single blink(1)mk2
  2. Enter several setpattlines
    a. blink1-tool --setpattline -m 550 0xff,0x00,0x00,0
    b. blink1-tool --setpattline -m 550 0x00,0x00,0x00,1
  3. Save the pattern (blink1-tool --savepattern
  4. Play sequence (blink1-tool --play 1)

from blink1.

todbot avatar todbot commented on July 18, 2024

Ahh, it looks like you might have run afoul of some old documentation. Where did you find that style for setpattline?
The invocation of setpattline changed in blink1-tool several months ago, and I might not have caught all references to it.

Try this:

blink1-tool -m 550 --rgb 255,255,0 --setpattline 0
blink1-tool -m 550 --rgb 0,255,255 --setpattline 1
blink1-tool --getpattline 0    # should return what you expect
blink1-tool --getpattline 1   # should return what you expect
blink1-tool --savepattern
# unplug blink1 device, plug back in
blink1-tool --getpattline 0
blink1-tool --getpattline 1
blink1-tool --play 1

from blink1.

todbot avatar todbot commented on July 18, 2024

Also check out this page for other tricks:
https://github.com/todbot/blink1/blob/master/docs/blink1-mk2-tricks.md

from blink1.

iklier avatar iklier commented on July 18, 2024

Ah ok. I was basing it off the test scripts in command line directory in the repo. I figured since it had a comment about the save pattern command for the mk2 that it was the correct syntax.

If there isn't going to be a man page with blink1-tool, can an example of the correct syntax for each switch be added to the usage/help text?

On Jun 19, 2014, at 7:20 PM, Tod E. Kurt [email protected] wrote:

Also check out this page for other tricks:
https://github.com/todbot/blink1/blob/master/docs/blink1-mk2-tricks.md


Reply to this email directly or view it on GitHub.

from blink1.

todbot avatar todbot commented on July 18, 2024

Ahh, right, that's where it's coming from. Thanks!

And yeah a manpage would be good. I'll add it as an issue:
#96

from blink1.

todbot avatar todbot commented on July 18, 2024

test scripts updated.
and blink1-tool error reporting on --savepattern fixed in source (not in a built release yet tho)

from blink1.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.