nothing important

This commit is contained in:
Lucca Ketterer 2020-07-22 22:13:03 +02:00
parent 160f70890d
commit db4040f8d9
8 changed files with 24 additions and 18 deletions

4
README
View File

@ -1,4 +0,0 @@
SPI has to be enabled:
sudo raspi-config -> Interface -> SPI

17
README.md Normal file
View File

@ -0,0 +1,17 @@
# led controll
## client
## server
### requirements
SPI has to be enabled:
`sudo raspi-config -> Interface -> SPI`
### usage
-d : (deamon mode) receive tcp packages with rgb color code in hex format on port 5000
-s $(hex) : (direct mode) used to set color directly
-h : help menu

View File

@ -1 +0,0 @@
test123

View File

@ -1 +0,0 @@
cava -p ./config | sed -u 's/;.*;$//' | ssh pi@192.168.188.61 './ws2801.py'

View File

@ -5,7 +5,7 @@ import sys
import subprocess import subprocess
client_socket = socket.socket() client_socket = socket.socket()
server_IP = "192.168.188.61" server_IP = "192.168.188.64"
def connect(host, port = 5000): def connect(host, port = 5000):
client_socket.connect((host, port)) client_socket.connect((host, port))

View File

@ -21,7 +21,7 @@ autosens = 1
# The number of bars (0-200). 0 sets it to auto (fill up console). # The number of bars (0-200). 0 sets it to auto (fill up console).
# Bars' width and space between bars in number of characters. # Bars' width and space between bars in number of characters.
bars = 2 bars = 6
; bar_width = 2 ; bar_width = 2
; bar_spacing = 1 ; bar_spacing = 1
@ -112,11 +112,11 @@ foreground = red
# Percentage value for integral smoothing. Takes values from 0 - 100. # Percentage value for integral smoothing. Takes values from 0 - 100.
# Higher values means smoother, but less precise. 0 to disable. # Higher values means smoother, but less precise. 0 to disable.
integral = 50 integral = 0
# Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable. # Disables or enables the so-called "Monstercat smoothing" with or without "waves". Set to 0 to disable.
; monstercat = 1 monstercat = 1
; waves = 0; waves = 3;
# Set gravity percentage for "drop off". Higher values means bars will drop faster. # Set gravity percentage for "drop off". Higher values means bars will drop faster.
# Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off". # Accepts only non-negative values. 50 means half gravity, 200 means double. Set to 0 to disable "drop off".

View File

@ -1,2 +1,2 @@
scp server/* pi@192.168.188.61:~/led_controll/ scp server/* pi@192.168.188.61:~/led_controll/
#ws2801.py --daemon scp server/* pi@192.168.188.64:~/led_controll/

View File

@ -1,5 +0,0 @@
RPi.GPIO
Adafruit-WS2801
Adafruit-GPIO