From 4a54e2dd99830cb361efdb2791a43f2ff82aec6f Mon Sep 17 00:00:00 2001 From: Fatima Idrees Date: Tue, 27 May 2025 16:00:49 +0300 Subject: [PATCH] Adding --- Documentation/README.md | 31 ++++--------------------------- {Image => Images}/1.png | Bin {Image => Images}/2.png | Bin {Image => Images}/3.png | Bin {Image => Images}/4.png | Bin README.md | 31 +++++++++++-------------------- 6 files changed, 15 insertions(+), 47 deletions(-) rename {Image => Images}/1.png (100%) rename {Image => Images}/2.png (100%) rename {Image => Images}/3.png (100%) rename {Image => Images}/4.png (100%) diff --git a/Documentation/README.md b/Documentation/README.md index a63699f..7c0a863 100644 --- a/Documentation/README.md +++ b/Documentation/README.md @@ -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! diff --git a/Image/1.png b/Images/1.png similarity index 100% rename from Image/1.png rename to Images/1.png diff --git a/Image/2.png b/Images/2.png similarity index 100% rename from Image/2.png rename to Images/2.png diff --git a/Image/3.png b/Images/3.png similarity index 100% rename from Image/3.png rename to Images/3.png diff --git a/Image/4.png b/Images/4.png similarity index 100% rename from Image/4.png rename to Images/4.png diff --git a/README.md b/README.md index e7382c1..84d5624 100644 --- a/README.md +++ b/README.md @@ -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 don’t 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 don’t 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 don’t 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 don’t know how to code or ## How to Use -1. **Connect your RGB LED** to your microcontroller’s pins (see your board’s pinout for details). +1. **Connect your Buzzer** to your microcontroller’s pins (see your board’s 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 don’t 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. ---