update to LOLIN32 Lite compatibility
This commit is contained in:
parent
14dd893df3
commit
32f9e26ef9
6
hal.py
6
hal.py
@ -32,7 +32,7 @@ class Sumorobot(object):
|
||||
pwm_right = PWM(Pin(4), freq=50, duty=0)
|
||||
|
||||
# bottom LED
|
||||
bottom_led = Pin(5, Pin.OUT)
|
||||
bottom_led = Pin(22, Pin.OUT)
|
||||
# bottom LED is in reverse polarity
|
||||
bottom_led.value(1)
|
||||
# sensor LEDs
|
||||
@ -43,6 +43,10 @@ class Sumorobot(object):
|
||||
# battery gauge
|
||||
adc_battery = ADC(Pin(32))
|
||||
|
||||
# the pullups for the phototransistors
|
||||
Pin(19, Pin.IN, Pin.PULL_UP)
|
||||
Pin(23, Pin.IN, Pin.PULL_UP)
|
||||
|
||||
# the phototransistors
|
||||
adc_line_left = ADC(Pin(34))
|
||||
adc_line_right = ADC(Pin(33))
|
||||
|
Loading…
Reference in New Issue
Block a user