From 3b8b386c9694aa57eddeccb8cd2cda0cf7445701 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Sun, 19 Aug 2012 21:01:48 +0200 Subject: [PATCH] host_python: Change default number of LEDs to 20 --- host_python/demo.py | 2 +- host_python/equalizer.py | 2 +- host_python/ledbar.py | 2 +- host_python/rainbow.py | 2 +- host_python/send_to_serial.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/host_python/demo.py b/host_python/demo.py index 6409d11..dc2545a 100755 --- a/host_python/demo.py +++ b/host_python/demo.py @@ -31,7 +31,7 @@ def main(): if len(args): print_usage() return 1 - number = 10 + number = 20 show_help = False for k, v in opts: if k == '-n': diff --git a/host_python/equalizer.py b/host_python/equalizer.py index 03f1415..5fb738d 100755 --- a/host_python/equalizer.py +++ b/host_python/equalizer.py @@ -15,7 +15,7 @@ FORMAT = pyaudio.paInt16 CHANNELS = 1 RATE = 44100 -PIXELS = 10 +PIXELS = 20 HISTORY_SIZE = 4 SAMPLE_SIZE = CHUNK_SIZE*HISTORY_SIZE diff --git a/host_python/ledbar.py b/host_python/ledbar.py index 72fed7d..b0801c6 100644 --- a/host_python/ledbar.py +++ b/host_python/ledbar.py @@ -6,7 +6,7 @@ import time class Ledbar: - def __init__(self, boxes=10, secs_per_frame=0.025): + def __init__(self, boxes=20, secs_per_frame=0.025): self.boxes = boxes self.secs_per_frame = secs_per_frame self.last_update = time.time() diff --git a/host_python/rainbow.py b/host_python/rainbow.py index 36aa39c..66d0e60 100755 --- a/host_python/rainbow.py +++ b/host_python/rainbow.py @@ -5,7 +5,7 @@ import sys from ledbar import Ledbar -PIXELS = 10 +PIXELS = 20 def update(t, i): offset = float(i)/PIXELS diff --git a/host_python/send_to_serial.py b/host_python/send_to_serial.py index 41a4bde..fe7d587 100755 --- a/host_python/send_to_serial.py +++ b/host_python/send_to_serial.py @@ -24,7 +24,7 @@ def main(): print_usage() return 1 speed = 115200 - number = 10 + number = 20 show_help = False for k, v in opts: if k == '-n':