This commit is contained in:
Fatima Idrees 2025-05-27 16:00:49 +03:00
parent 66cc262aa9
commit 4a54e2dd99
6 changed files with 15 additions and 47 deletions

View File

@ -1,40 +1,17 @@
# RGB LED Library Development Steps
# Buzzer Library Development Steps
## Version 01
![](../Images/1.png)
Developed initial test functions that accept six values—each corresponding to a pin and its state—to control the LED color.
---
## Version 02
![](../Images/2.png)
![](../Images/3.png)
Attempted to create a new command for setting pins, but this approach was unsuccessful.
It essentially turns the buzzet on or off and allows the user to adjust its notes.
---
## Version 03
![](../Images/4.png)
Updated the design so the user only needs to enter the first pin; the program automatically calculates the remaining pins.
---
## Upcoming Version
![](../Images/5.png)
This will allow users to input values as percentages.
---
## Usage Example
![](../Images/6.png)
![](../Images/4.png)
A way to test the library!
A way to test the function!

View File

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB

View File

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 26 KiB

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 57 KiB

After

Width:  |  Height:  |  Size: 57 KiB

View File

@ -1,6 +1,6 @@
# RGB_LED Library for MicroBlocks
# Buzzer Library for MicroBlocks
Welcome to the **RGB LED Library** for MicroBlocks!
Welcome to the **Buzzer Library** for MicroBlocks!
This library makes it easy for anyone—even if you dont know how to code or use a computer much—to control a fan motor using simple blocks in MicroBlocks.
---
@ -9,7 +9,8 @@ This library makes it easy for anyone—even if you dont know how to code or
- **Easy drag-and-drop blocks** for controlling your fan motor
- **No coding required**
- **Control the color of the LED**
- **Turn on & off the buzzer**
- **Control the notes**
- **Beginner-friendly instructions**
---
@ -26,7 +27,7 @@ This library makes it easy for anyone—even if you dont know how to code or
## Installation
1. **Download the Fan Motor Library:**
Download the library file from [here](RGB_LED.ubl).
Download the library file from [here](Buzzer.ubl).
2. **Open MicroBlocks IDE** on your computer.
@ -38,11 +39,11 @@ This library makes it easy for anyone—even if you dont know how to code or
## How to Use
1. **Connect your RGB LED** to your microcontrollers pins (see your boards pinout for details).
1. **Connect your Buzzer** to your microcontrollers pins (see your boards pinout for details).
2. **Open MicroBlocks IDE** and make sure your board is connected.
3. **Find the Fan Motor blocks** in the blocks menu.
3. **Find the Buzzer blocks** in the blocks menu.
4. **Drag the blocks** you want to use into your script area.
- For example:
@ -54,22 +55,12 @@ This library makes it easy for anyone—even if you dont know how to code or
---
## Example Project
![](Images/6.png)
![](Images/4.png)
RGB LED block, start by entering the pin number where your RGB LED is connected.
You have two ways to set the color:
1. **Select a Color:**
Choose which color you want the LED to display by selecting from the available options.
2. **Enter a Color Name:**
Type the color name (e.g., "White") into the color field.
**Note:** The first letter must be capitalized.
**Available Colors:**
Red, Yellow, Green, Purple, Blue, White.
After setting the pin value, there are two ways to use a buzzer:
1. You can simply turn it on or off.
2. You can adjust its notes.
---