forked from psy0rz/ledder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
displayconf.ok
42 lines (34 loc) · 1.39 KB
/
displayconf.ok
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import {MulticastSync} from "./ledder/drivers/MulticastSync.js"
import {DisplayLedstream} from "./ledder/drivers/DisplayLedstream.js"
import OffsetMapper from "./ledder/drivers/OffsetMapper.js"
export let displayList=[];
/////////// normal landscape 75 x 8, left zigzagged ledstream:
new MulticastSync('239.137.111.1', 65001, 1000)
let mapper = new OffsetMapper(75, 8, true)
mapper.zigZagX()
displayList.push(
// new DisplayLedstream( 2, 75, 8, ["esp32-240ac4973068.local"], 65000, mapper), //smokeplastic board
new DisplayLedstream( 2, 75, 8, ["10.0.0.160"], 65000, mapper), //painted board
)
mapper = new OffsetMapper(18*4, 18, false)
mapper.zigZagY()
mapper.flipY()
displayList.push( new DisplayLedstream( 4, 18*4, 18, ["10.0.0.183"], 65000, mapper))
// /////////// vertical landscape mode 75 x 8, left zigzagged ledstream.
// //For ledder the display now has width 8 and height 75.
// new MulticastSync('239.137.111.1', 65001, 1000)
// let mapper = new OffsetMapper(8, 75, false)
// mapper.zigZagY()
// displayList=[
// new DisplayLedstream( 2, 8, 75, ["esp32-f008d161492c.local"], 65000, mapper), //painted board
// ]
//mqtt stuff used by some animations
export let nodename="somename"
export let mqttHost='mqtt://mqttserver.com'
export let mqttOpts={
username: 'abc',
password: '12345',
}
//default animation and preset
export let animationName="HSD"
export let presetName="default"