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
|
<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>
|
motor code into a new module.</p>
|
||||||
</br>
|
</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.
|
<code>code.py</code> file.
|
||||||
</p>
|
</p>
|
||||||
<p>Now all we need to do from the main code is:</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>
|
</br>
|
||||||
<pre class="bg-gray-100 p-4 rounded shadow text-sm">
|
<pre class="bg-gray-100 p-4 rounded shadow text-sm">
|
||||||
<code class="language-python"></code>
|
<code class="language-python"></code>
|
||||||
# motors.py
|
# motor.py
|
||||||
import pwmio
|
import pwmio
|
||||||
|
|
||||||
class Motor:
|
class Motor:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue