Project

General

Profile

Feature #4291 » 03_reset_only.sh

roh, 01/16/2020 05:55 PM

 
1
#!/bin/bash
2

    
3
#usb_rly08 serial
4
USB_RELAY="/dev/serial/by-id/usb-Devantech_Ltd._USB-RLY08_00021197-if00"
5

    
6
#usb_rly08
7
# relay1 = usbpower
8
# relay2 = dfu-btn
9

    
10
#12 off
11
echo -n "op" > $USB_RELAY
12
sleep 1
13
# 1 on
14
echo -n "e" > $USB_RELAY
(3-3/3)
Add picture from clipboard (Maximum size: 48.8 MB)