-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
80 lines (63 loc) · 3.03 KB
/
justfile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
usb_port := "/dev/ttyUSB0"
shell:
picocom {{usb_port}} -b115200
esp8266_setup firmware_file:
esptool.py --port {{usb_port}} erase_flash
esptool.py --port {{usb_port}} write_flash --flash_size=detect -fm qio 0x00000 {{firmware_file}}
esp32_setup firmware_file:
esptool.py --chip esp32 --port {{usb_port}} erase_flash
esptool.py --chip esp32 --port {{usb_port}} --baud 460800 write_flash -z 0x1000 {{firmware_file}}
cp-lcd:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put lcd_module/config.py config.py
ampy --port {{usb_port}} put lcd_module/server.py server.py
ampy --port {{usb_port}} put lcd_module/lcd.py lcd.py
cp-lcd-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put lcd_module_event/config.py config.py
ampy --port {{usb_port}} put lcd_module_event/server.py server.py
ampy --port {{usb_port}} put lcd_module_event/lcd.py lcd.py
cp-switch:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put switch_module/config.py config.py
ampy --port {{usb_port}} put switch_module/server.py server.py
cp-light:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put light_module/config.py config.py
ampy --port {{usb_port}} put light_module/server.py server.py
ampy --port {{usb_port}} put light_module/servo.py servo.py
cp-light-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put light_module_event/config.py config.py
ampy --port {{usb_port}} put light_module_event/server.py server.py
cp-led-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put led_module_event/config.py config.py
ampy --port {{usb_port}} put led_module_event/server.py server.py
cp-button-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put button_module_event/config.py config.py
ampy --port {{usb_port}} put button_module_event/server.py server.py
cp-buzzer-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put buzzer_module_event/config.py config.py
ampy --port {{usb_port}} put buzzer_module_event/server.py server.py
cp-curtain:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put curtain_module/config.py config.py
ampy --port {{usb_port}} put curtain_module/server.py server.py
ampy --port {{usb_port}} put curtain_module/motor.py motor.py
cp-alarm-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put alarm_module_event/config.py config.py
ampy --port {{usb_port}} put alarm_module_event/server.py server.py
ampy --port {{usb_port}} put lib/hcsr04.py
cp-door-event:
ampy --port {{usb_port}} put main.py main.py
ampy --port {{usb_port}} put door_module_event/config.py config.py
ampy --port {{usb_port}} put door_module_event/server.py server.py
ampy --port {{usb_port}} put door_module_event/servo.py servo.py
devsetup:
cp dev/hooks/* .git/hooks
fmt:
yapf -i -r .