Search found 4 matches

by Murray
Wed Dec 01, 2021 5:24 am
Forum: General Discussion and Questions
Topic: Import not importing?
Replies: 5
Views: 2825

Re: Import not importing?

Figured it out.

The function is called the same as the file and micropython got confused
by Murray
Wed Dec 01, 2021 2:34 am
Forum: General Discussion and Questions
Topic: Import not importing?
Replies: 5
Views: 2825

Re: Import not importing?

Sorry, my description is different than the file naming.

The real version calls the correct file name
by Murray
Tue Nov 30, 2021 9:51 pm
Forum: General Discussion and Questions
Topic: Import not importing?
Replies: 5
Views: 2825

Re: Import not importing?

ir.py : from machine import Pin rf = Pin(14, Pin.IN) lf = Pin(12, Pin.IN) rt = Pin(13, Pin.IN) lt = Pin(15, Pin.IN) motors.py : import time from machine import Pin pwm1 = Pin(5, Pin.OUT) # D1 pwm2 = Pin(4, Pin.OUT) # D2 dir1 = Pin(0, Pin.OUT) # D3 dir2 = Pin(2, Pin.OUT) # D4 def rev (): pwm1(1) pwm2...
by Murray
Tue Nov 30, 2021 3:12 pm
Forum: General Discussion and Questions
Topic: Import not importing?
Replies: 5
Views: 2825

Import not importing?

Hi all I am making a ESP8266 sumobot is sorts with a 4 channel IR sensor and a motor shield https://www.makerstore.com.au/wp-content/uploads/2017/09/ROBO-4WAY4CHAN-TRACK-MOD-06-416x416.jpg http://www.energiazero.org/arduino_sensori/4_channel_line_tracker_sensor.pdf https://i0.wp.com/2.bp.blogspot.co...