motor module is now consistently called 'motor.py'
parent
2bf27c264d
commit
73dc758564
|
|
@ -278,7 +278,7 @@ for i in range(-100, 100):
|
|||
<p>Finally, to make our final code modular, cleaner, and easier to understand we can offload all out
|
||||
motor code into a new module.</p>
|
||||
</br>
|
||||
<p>We make a second file called <code>motors.py</code> which we'll import and call from our main
|
||||
<p>We make a second file called <code>motor.py</code> which we'll import and call from our main
|
||||
<code>code.py</code> file.
|
||||
</p>
|
||||
<p>Now all we need to do from the main code is:</p>
|
||||
|
|
@ -323,7 +323,7 @@ for i in range(-100, 100):
|
|||
</br>
|
||||
<pre class="bg-gray-100 p-4 rounded shadow text-sm">
|
||||
<code class="language-python"></code>
|
||||
# motors.py
|
||||
# motor.py
|
||||
import pwmio
|
||||
|
||||
class Motor:
|
||||
|
|
|
|||
Loading…
Reference in New Issue