-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
101 lines (73 loc) · 1.79 KB
/
justfile
File metadata and controls
101 lines (73 loc) · 1.79 KB
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# FNIRSI DPS-150 Power Supply
# Run test suite (no device needed)
test:
uv run --with pytest --with fastmcp pytest tests/ -v
port := env("DPS150_PORT", "/dev/cu.usbmodem065AD9D205B31")
py := "uv run dps150.py -p " + port
# Show device info
info:
{{py}} info
# Full state dump (JSON)
state:
{{py}} state
# Read measurements
voltage:
{{py}} voltage
current:
{{py}} current
power:
{{py}} power
input-voltage:
{{py}} input-voltage
temperature:
{{py}} temperature
# Set voltage setpoint (does not enable output)
set-voltage volts:
{{py}} set-voltage {{volts}}
# Set current limit (does not enable output)
set-current amps:
{{py}} set-current {{amps}}
# Set voltage + current and enable output
set-output volts amps:
{{py}} set-output {{volts}} {{amps}}
# Enable output
on:
{{py}} on
# Disable output
off:
{{py}} off
# Protection thresholds
set-ovp volts:
{{py}} set-ovp {{volts}}
set-ocp amps:
{{py}} set-ocp {{amps}}
set-opp watts:
{{py}} set-opp {{watts}}
set-otp celsius:
{{py}} set-otp {{celsius}}
set-lvp volts:
{{py}} set-lvp {{volts}}
# Presets
presets:
{{py}} presets
set-preset n volts amps:
{{py}} set-preset {{n}} {{volts}} {{amps}}
# Display / sound
set-brightness level:
{{py}} set-brightness {{level}}
set-volume level:
{{py}} set-volume {{level}}
# Metering
start-metering:
{{py}} start-metering
stop-metering:
{{py}} stop-metering
# Voltage sweep
sweep-voltage start stop step hold current_limit:
{{py}} sweep-voltage {{start}} {{stop}} {{step}} {{hold}} {{current_limit}}
# Current sweep
sweep-current start stop step hold voltage:
{{py}} sweep-current {{start}} {{stop}} {{step}} {{hold}} {{voltage}}
# Enter firmware upgrade mode (WARNING: requires USB replug to recover)
dfu:
{{py}} dfu