This commit is contained in:
fatimaxsen committed 2025-05-27 10:54:38 +03:00
1 parent b6787097fd
commit bcedcdac2f
3 files changed
+43 -14

No files matched your search

+33
View File
@@ -0,0 +1,33 @@
# Steps of Developing the Motor Library
---
## Version 01:
![](../Images/1.png)
Created two separate functions for testing:
- One function to turn the fan motor on or off
- Another function to set the motor speed
---
## Version 02:
![](../Images/2.png)
Combined both actions into a single function and tested the new approach.
---
## Version 03:
![](../Images/4.png)
Updated the speed control to use a percentage value.
The function now converts the percentage to a value between 0 and 1023 using PWM for smoother speed control.
---
## Usage Example:
![](../Images/5.png)
A way to test the Library!