深度适配私家云二代

This commit is contained in:
mofeng-git
2024-10-11 11:28:36 +00:00
parent 40505e7e00
commit 87c887a62b
8 changed files with 72 additions and 24 deletions

38
src/image/cumebox2/config.json Executable file
View File

@@ -0,0 +1,38 @@
{
"seting":{
"pixel":12864,
"dev":"/dev/i2c-0",
"addr":60
},
"draw1":{
"seting":{
"cycle":5,"time":40,"page":1
},
"display":[
{"type":"r_rect","x0":2,"y0":2,"w":124,"h":60,"r":30,"fill":0,"color":1,"en":1},
{"type":"str","data":"One-KVM","x0":23,"y0":9,"size":2,"color":1,"en":1}
,
{"type":"str","data":"CumeBox","x0":20,"y0":33,"size":2,"color":1,"en":1}
]
},
"Temp":{
"seting":{
"cycle":5,"time":20,"page":2
},
"display":[
{"type":"str","data":"Temp","x0":30,"y0":4,"size":3,"color":2,"en":1},
{"type":"str","data":"'C","x0":90,"y0":36,"size":2,"color":2,"en":1},
{"type":"base","func":2,"x0":30,"y0":36,"base":4,"class":0,"size":2,"color":1,"en":1}
]
},
"IP":{
"seting":{
"cycle":5,"time":20,"page":3
},
"display":[
{"type":"base","func":4,"x0":0,"y0":0,"port":"end0","base":15,"size":2,"color":1,"en":1}
,
{"type":"base","func":4,"x0":0,"y0":28,"port":"wlan0","base":15,"size":2,"color":1,"en":1}
]

8
src/image/cumebox2/rc.local Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
echo 4500 > /sys/class/hwmon/hwmon0/fan1_target
echo 0 > /sys/class/leds/red/brightness
echo 0 > /sys/class/leds/blue/brightness
echo 1 > /sys/class/leds/green/brightness
#https://github.com/bearcatl/SSD1306_OLED_json
nohup /usr/bin/ssd > /var/log/ssd.log 2>&1 &
exit 0

BIN
src/image/cumebox2/ssd Executable file

Binary file not shown.

Binary file not shown.

Binary file not shown.

4
src/image/onecloud/rc.local Executable file
View File

@@ -0,0 +1,4 @@
#!/bin/bash
green_on
echo device > /sys/class/usb_role/c9040000.usb-role-switch/role
exit 0