mirror of
https://github.com/outbackdingo/builder.git
synced 2026-01-27 10:18:28 +00:00
add gpios to c22cp
This commit is contained in:
@@ -100,6 +100,7 @@ Many devices sold in online stores are clones of original devices or, more often
|
||||
```
|
||||
Model names Our firmware
|
||||
|
||||
Dahua IPC-C22C-LC => Imou IPC-С22CP
|
||||
Imou IPC-С22EP-A => Imou IPC-С22CP
|
||||
Switcam HS303 v3 => Qtech QVC-IPC-136W
|
||||
Tiandy TC-C320N => Tiandy TC-C321N
|
||||
|
||||
14
devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb
Executable file
14
devices/ssc325_lite_imou-c22cp/general/overlay/etc/wireless/usb
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
|
||||
set_gpio() {
|
||||
[ "$2" -eq 1 ] && gpio set $1 || gpio clear $1
|
||||
sleep 1
|
||||
}
|
||||
|
||||
if [ "$1" = "rtl8188fu-ssc325-imou-c22cp" ]; then
|
||||
set_gpio 46 1
|
||||
modprobe 8188fu
|
||||
exit 0
|
||||
fi
|
||||
|
||||
exit 1
|
||||
@@ -11,16 +11,18 @@ fw_setenv upgrade 'https://github.com/OpenIPC/builder/releases/download/latest/s
|
||||
# Set custom majestic settings
|
||||
#
|
||||
cli -s .video0.codec h264
|
||||
cli -s .nightMode.irCutPin1 76
|
||||
cli -s .nightMode.irCutPin2 77
|
||||
cli -s .nightMode.colorToGray true
|
||||
#cli -s .audio.speakerPin 15
|
||||
cli -s .audio.outputEnabled true
|
||||
cli -s .audio.outputVolume 80
|
||||
#cli -s .audio.speakerPin 15
|
||||
cli -s .audio.srate 48000
|
||||
#
|
||||
#
|
||||
# Set wlan device and credentials if need
|
||||
#
|
||||
#fw_setenv wlandev rtl8188fu-ssc325-imou-c22cp
|
||||
fw_setenv wlandev rtl8188fu-ssc325-imou-c22cp
|
||||
#fw_setenv wlanssid Router
|
||||
#fw_setenv wlanpass 12345678
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
alarm_in=-1
|
||||
alarm_out=-1
|
||||
button=66
|
||||
ircut1=76
|
||||
ircut2=77
|
||||
led1=61
|
||||
led2=79
|
||||
light_ir=-1
|
||||
light_wl=-1
|
||||
light_sensor=-1
|
||||
mmc_pwr=-1
|
||||
speaker=-1
|
||||
usb=46
|
||||
|
||||
Reference in New Issue
Block a user