From 32f9e26ef9f61012223aeb5f79ff0aedbc978a44 Mon Sep 17 00:00:00 2001 From: Silver Kuusik Date: Sat, 24 Mar 2018 17:59:52 +0200 Subject: [PATCH] update to LOLIN32 Lite compatibility --- hal.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hal.py b/hal.py index 911c7f1..cebd076 100644 --- a/hal.py +++ b/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))