Whatevs
This commit is contained in:
parent
4bb046cffc
commit
937733d50e
@ -17,9 +17,9 @@ uint32_t hash32(uint32_t d) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// must be the next prime after NUM_TOTAL_LEDS
|
// 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
|
// 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){
|
int IDLE_rand(int *seed){
|
||||||
return *seed = (*seed * IDLE_PRIM_ELEM ) % IDLE_PRIME;
|
return *seed = (*seed * IDLE_PRIM_ELEM ) % IDLE_PRIME;
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
#!/bin/sh
|
#!/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 -
|
@ -1,14 +1,14 @@
|
|||||||
import logging
|
import logging
|
||||||
|
|
||||||
#width
|
#width
|
||||||
ScreenX = 24
|
ScreenX = 48
|
||||||
#height
|
#height
|
||||||
ScreenY = 40
|
ScreenY = 40
|
||||||
|
|
||||||
Serial = "/dev/ttyACM0"
|
Serial = "/dev/ttyACM0"
|
||||||
|
|
||||||
# kills app after some seconds if it sends no data
|
# kills app after some seconds if it sends no data
|
||||||
NoDataTimeout = 20
|
NoDataTimeout = 40
|
||||||
|
|
||||||
LogLevel = logging.DEBUG
|
LogLevel = logging.DEBUG
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user