[Project File] - AllPixel Larson Scanner

Gotta have some Knight Rider goodness :slight_smile:

The below (and attached) project file will run the Larson Scanner animation on a string of 64 WS2812 (Neopixel) LEDs using the AllPixelMini controller. Increase ‘tail’ to make the lit LED string wider.

To run:
bibliopixel run APLarsonScanner.json

``

{
“driver”: {
“typename”: “bibliopixel.drivers.serial.Serial”,
“type”: “WS2812”,
“num”: 64,
“c_order”: “GRB”
},

"layout": {
    "typename": "bibliopixel.layout.strip.Strip"
},

"animation": {
    "typename": "BiblioPixelAnimations.strip.LarsonScanners.LarsonScanner",
    "color": [255,0,0],
    "tail": 1,
    "start": 0,
    "end": -1
},

"run": {
    "fps": 30
},

"path": "/Python36-32/Lib/site-packages/BiblioPixelAnimations"

}

``

APLarsonScanner.json (529 Bytes)

FYI, BiblioPixelAnimations is installed by BiblioPixel. There is no need to include that path entry.
I need to change that in the wiki because it’s confusing. We used that during initial testing. That path is really more for if you have other code locally on your system. Though you can also include git repos there, which can be helpful.

Also, start and end are unnecessary. Only need to include values that are different than the defaults.

Also, for the driver, you can simply use “serial” as it’s provided as an alias: https://github.com/ManiacalLabs/BiblioPixel/blob/master/bibliopixel/project/aliases.py#L13

···

On Sun, Jun 25, 2017 at 10:59 AM, Daniel Ternes djternes@gmail.com wrote:

Gotta have some Knight Rider goodness :slight_smile:

The below (and attached) project file will run the Larson Scanner animation on a string of 64 WS2812 (Neopixel) LEDs using the AllPixelMini controller. Increase ‘tail’ to make the lit LED string wider.

To run:
bibliopixel run APLarsonScanner.json

``

{
“driver”: {
“typename”: “bibliopixel.drivers.serial.Serial”,
“type”: “WS2812”,
“num”: 64,
“c_order”: “GRB”
},

"layout": {
    "typename": "bibliopixel.layout.strip.Strip"
},


"animation": {
    "typename": "BiblioPixelAnimations.strip.LarsonScanners.LarsonScanner",
    "color": [255,0,0],
    "tail": 1,
    "start": 0,
    "end": -1
},


"run": {
    "fps": 30
},

"path": "/Python36-32/Lib/site-packages/BiblioPixelAnimations"

}

``

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/5415e80e-ff02-4acf-84b5-1e447b6597e6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Good tip on the path. Is the alias notation in the documentation?

···

On Sunday, June 25, 2017 at 11:03:44 AM UTC-4, Adam Haile wrote:

FYI, BiblioPixelAnimations is installed by BiblioPixel. There is no need to include that path entry.
I need to change that in the wiki because it’s confusing. We used that during initial testing. That path is really more for if you have other code locally on your system. Though you can also include git repos there, which can be helpful.

Also, start and end are unnecessary. Only need to include values that are different than the defaults.

Also, for the driver, you can simply use “serial” as it’s provided as an alias: https://github.com/ManiacalLabs/BiblioPixel/blob/master/bibliopixel/project/aliases.py#L13

On Sun, Jun 25, 2017 at 10:59 AM, Daniel Ternes djternes@gmail.com wrote:

Gotta have some Knight Rider goodness :slight_smile:

The below (and attached) project file will run the Larson Scanner animation on a string of 64 WS2812 (Neopixel) LEDs using the AllPixelMini controller. Increase ‘tail’ to make the lit LED string wider.

To run:
bibliopixel run APLarsonScanner.json

``

{
“driver”: {
“typename”: “bibliopixel.drivers.serial.Serial”,
“type”: “WS2812”,
“num”: 64,
“c_order”: “GRB”
},

"layout": {
    "typename": "bibliopixel.layout.strip.Strip"
},


"animation": {
    "typename": "BiblioPixelAnimations.strip.LarsonScanners.LarsonScanner",
    "color": [255,0,0],
    "tail": 1,
    "start": 0,
    "end": -1
},


"run": {
    "fps": 30
},

"path": "/Python36-32/Lib/site-packages/BiblioPixelAnimations"

}

``

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/5415e80e-ff02-4acf-84b5-1e447b6597e6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Ah, nope. It’s not. Will add a list of aliases somewhere. Good call.

···

No no, aliases is great. Anything that means less typing is good in my book.
But if we wanted to simplify we could not do the custom thing.

···

On Mon, Jun 26, 2017 at 7:47 AM, Tom Swirly tom@swirly.com wrote:

Whoa! The first real-world project!

I filed an issue for documenting aliases.

But I filed this issue regarding custom aliases, but those are problematic. I’m wondering if the whole aliases idea is sorta dumb? :smiley:

On Sun, Jun 25, 2017 at 7:25 PM, Adam Haile adammhaile@gmail.com wrote:

Ah, nope. It’s not. Will add a list of aliases somewhere. Good call.

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/035066e6-ed70-4b8b-9e4b-14e4770a29ec%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

/t

https://tom.ritchford.com

https://tom.swirly.com

I’d be hesitant to do the custom thing as it might make sharing difficult. I think as long as there is a documented, fixed list of aliases, you get the best of both worlds (less typing and standardization amongst projects).

-Sent from my phone

···

On Jun 26, 2017 7:49 AM, “Adam Haile” adammhaile@gmail.com wrote:

No no, aliases is great. Anything that means less typing is good in my book.
But if we wanted to simplify we could not do the custom thing.

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/CAG8g-TZjEr1RRMFY9qJZtH7W0Pdhy4wtX89yriPSzNwXMo%2B%2BeQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

On Mon, Jun 26, 2017 at 7:47 AM, Tom Swirly tom@swirly.com wrote:

Whoa! The first real-world project!

I filed an issue for documenting aliases.

But I filed this issue regarding custom aliases, but those are problematic. I’m wondering if the whole aliases idea is sorta dumb? :smiley:

On Sun, Jun 25, 2017 at 7:25 PM, Adam Haile adammhaile@gmail.com wrote:

Ah, nope. It’s not. Will add a list of aliases somewhere. Good call.

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/035066e6-ed70-4b8b-9e4b-14e4770a29ec%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

/t

https://tom.ritchford.com

https://tom.swirly.com

+1

···

On Mon, Jun 26, 2017 at 7:53 AM, Daniel Ternes djternes@gmail.com wrote:

I’d be hesitant to do the custom thing as it might make sharing difficult. I think as long as there is a documented, fixed list of aliases, you get the best of both worlds (less typing and standardization amongst projects).

-Sent from my phone

On Jun 26, 2017 7:49 AM, “Adam Haile” adammhaile@gmail.com wrote:

No no, aliases is great. Anything that means less typing is good in my book.
But if we wanted to simplify we could not do the custom thing.

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/CAG8g-TZjEr1RRMFY9qJZtH7W0Pdhy4wtX89yriPSzNwXMo%2B%2BeQ%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

On Mon, Jun 26, 2017 at 7:47 AM, Tom Swirly tom@swirly.com wrote:

Whoa! The first real-world project!

I filed an issue for documenting aliases.

But I filed this issue regarding custom aliases, but those are problematic. I’m wondering if the whole aliases idea is sorta dumb? :smiley:

On Sun, Jun 25, 2017 at 7:25 PM, Adam Haile adammhaile@gmail.com wrote:

Ah, nope. It’s not. Will add a list of aliases somewhere. Good call.

You received this message because you are subscribed to the Google Groups “BiblioPixel Users” group.

To unsubscribe from this group and stop receiving emails from it, send an email to bibliopixel-users+unsubscribe@googlegroups.com.

To post to this group, send email to bibliopixel-users@googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/bibliopixel-users/035066e6-ed70-4b8b-9e4b-14e4770a29ec%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

/t

https://tom.ritchford.com

https://tom.swirly.com