Skip to content

Commit 021c4d7

Browse files
committed
Turn on the level translator's output enable
1 parent 518a6dc commit 021c4d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deploy/src/main.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ function (@main)(args)::Cint
104104
stby = GPIO.request_output(gpio, STBY_PIN, "motor_stby", 0)
105105
println(Core.stdout, "stby configured")
106106

107+
ltrans_oe = GPIO.request_output(gpio, LTRANS_OE, "ltrans_oe", 0)
108+
println(Core.stdout, "ltrans_oe configured")
109+
107110
println(Core.stdout, "gpio pins configured")
108111

109112
# Setup hardware PWM via sysfs
@@ -135,6 +138,7 @@ function (@main)(args)::Cint
135138
tenc_1a = ThreadedEncoder(Encoder(gpio, M1A))
136139
tenc_2a = ThreadedEncoder(Encoder(gpio, M2A))
137140

141+
GPIO.set_value(ltrans_oe, 1)
138142
apply_motor_output!(hw, 512.0f0, 512.0f0)
139143
while true end
140144
ctrl = BalanceController()

0 commit comments

Comments
 (0)