motor module is now consistently called 'motor.py'

master
Jake 2025-08-04 14:17:46 +08:00
parent 2bf27c264d
commit 73dc758564
1 changed files with 2 additions and 2 deletions

View File

@ -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: