This commit is contained in:
deckensteuerung 2018-09-10 19:14:05 +02:00
parent 4bb046cffc
commit 937733d50e
3 changed files with 5 additions and 5 deletions

View File

@ -17,9 +17,9 @@ uint32_t hash32(uint32_t d) {
}
// must be the next prime after NUM_TOTAL_LEDS
#define IDLE_PRIME 967
#define IDLE_PRIME 1931
// must be a primitive element of the prime residue field |N/IDLE_PRIM
#define IDLE_PRIM_ELEM 159
#define IDLE_PRIM_ELEM 283
int IDLE_rand(int *seed){
return *seed = (*seed * IDLE_PRIM_ELEM ) % IDLE_PRIME;

View File

@ -1,2 +1,2 @@
#!/bin/sh
youtube-dl --no-progress --output - ${3} | ffmpeg -f alsa default -re -i - -pix_fmt rgb24 -vf "transpose=1,scale=${1}x${2}" -sws_flags bicubic -sws_dither bayer -vcodec rawvideo -f image2pipe -
youtube-dl --no-progress --output - ${3} | ffmpeg -f alsa default -re -i - -pix_fmt rgb24 -vf "scale=${1}x${2}" -sws_flags bicubic -sws_dither bayer -vcodec rawvideo -f image2pipe -

View File

@ -1,14 +1,14 @@
import logging
#width
ScreenX = 24
ScreenX = 48
#height
ScreenY = 40
Serial = "/dev/ttyACM0"
# kills app after some seconds if it sends no data
NoDataTimeout = 20
NoDataTimeout = 40
LogLevel = logging.DEBUG