This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
projects:neopixel-bandwidth-room-light [2017-10-15 08:25] trinitor [Programm] |
projects:neopixel-bandwidth-room-light [2017-10-15 08:32] trinitor [Test] |
||
---|---|---|---|
Line 221: | Line 221: | ||
http:// | http:// | ||
- | ===== Test ===== | + | ===== LED Test ===== |
< | < | ||
#!/bin/bash | #!/bin/bash | ||
IP=192.168.x.x | IP=192.168.x.x | ||
PORT=2342 | PORT=2342 | ||
- | for i in 16 48 96 256 128 64 32 16 1 | + | SLEEP=0.1 |
- | do | + | |
- | | + | while : ; do |
- | | + | for i in $(seq 32 -4 0); do |
- | | + | |
- | echo "{red:1, | + | |
- | | + | done |
+ | | ||
+ | for i in $(seq 32 -4 0); do | ||
+ | echo Led intensity: $i | ||
+ | echo "{red:0, | ||
+ | | ||
+ | sleep 1 | ||
+ | for i in $(seq 32 -4 0); do | ||
+ | echo Led intensity: $i | ||
+ | echo "{red:0,green:0, | ||
+ | done | ||
+ | | ||
done | done | ||
</ | </ |