Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
f8b0ac8c
Commit
f8b0ac8c
authored
11 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Adding "measuring stick" tool, for quickly measuring out 64-LED strips
parent
782cab91
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/measuring_stick/measuring_stick.ino
+35
-0
35 additions, 0 deletions
tools/measuring_stick/measuring_stick.ino
with
35 additions
and
0 deletions
tools/measuring_stick/measuring_stick.ino
0 → 100644
+
35
−
0
View file @
f8b0ac8c
/*
* Measuring Stick - a quick tool for measuring out 64-LED strips.
*
* This is a TeensyDuino sketch which lights the first 64 LEDs
* on a strip. LEDs 0, 10, 20, 30, 40, 50, and 60 are green,
* the others are dim white. The entire strip is kept dim enough
* that this can be used as a battery-powered device that you can
* plug into LED strips while you work with them.
*/
#include
<OctoWS2811.h>
const
int
ledsPerStrip
=
128
;
DMAMEM
int
displayMemory
[
ledsPerStrip
*
6
];
int
drawingMemory
[
ledsPerStrip
*
6
];
OctoWS2811
leds
(
ledsPerStrip
,
displayMemory
,
drawingMemory
,
WS2811_GRB
|
WS2811_800kHz
);
void
setup
()
{
leds
.
begin
();
for
(
int
i
=
0
;
i
<
ledsPerStrip
;
++
i
)
leds
.
setPixel
(
i
,
0x000000
);
for
(
int
i
=
0
;
i
<
64
;
++
i
)
leds
.
setPixel
(
i
,
0x101010
);
for
(
int
i
=
0
;
i
<
64
;
i
+=
10
)
leds
.
setPixel
(
i
,
0x104010
);
}
void
loop
()
{
leds
.
show
();
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment