json device started (but on hold until later gos)

Minizbot2012 3 years ago
parent 67bb6503d1
commit 794d5e6f51

@ -0,0 +1,12 @@
package devices
import "github.com/OrbTools/OrbCommon/gui"
//Device defines a JSON device
//NYI
type Device struct {
EB int
BINDLEN int
BINDING []byte
GUI gui.GUI
}

@ -0,0 +1,154 @@
{
"BINDLEN": 26,
"EB": 3,
"BINDING": [
41,
2,
3,
4,
5,
15,
16,
17,
18,
19,
58,
30,
31,
32,
33,
42,
44,
45,
46,
47,
56,
103,
106,
108,
105,
57
],
"GUI": {
"Pages": [
{
"Hive": "MIP",
"Name": "Grid",
"Type": 0,
"Keys": [
{
"KeyID": 0,
"KeyName": "01"
},
{
"KeyID": 1,
"KeyName": "02"
},
{
"KeyID": 2,
"KeyName": "03"
},
{
"KeyID": 3,
"KeyName": "04"
},
{
"KeyID": 4,
"KeyName": "05"
},
{
"KeyID": 5,
"KeyName": "06"
},
{
"KeyID": 6,
"KeyName": "07"
},
{
"KeyID": 7,
"KeyName": "08"
},
{
"KeyID": 8,
"KeyName": "09"
},
{
"KeyID": 9,
"KeyName": "10"
},
{
"KeyID": 10,
"KeyName": "11"
},
{
"KeyID": 11,
"KeyName": "12"
},
{
"KeyID": 12,
"KeyName": "13"
},
{
"KeyID": 13,
"KeyName": "14"
},
{
"KeyID": 14,
"KeyName": "15"
},
{
"KeyID": 15,
"KeyName": "16"
},
{
"KeyID": 16,
"KeyName": "17"
},
{
"KeyID": 17,
"KeyName": "18"
},
{
"KeyID": 18,
"KeyName": "19"
},
{
"KeyID": 19,
"KeyName": "20"
}
]
},
{
"Hive": "SIP",
"Name": "Side Keys",
"Type": 2,
"Keys": [
{
"KeyID": 0,
"KeyName": "Upper Button"
},
{
"KeyID": 1,
"KeyName": "DPad Up"
},
{
"KeyID": 2,
"KeyName": "DPad Right"
},
{
"KeyID": 3,
"KeyName": "DPad Left"
},
{
"KeyID": 4,
"KeyName": "DPad Down"
},
{
"KeyID": 5,
"KeyName": "Lower Button"
}
]
}
]
}
}
Loading…
Cancel
Save