Adding
@ -1,40 +1,17 @@
|
||||
# RGB LED Library Development Steps
|
||||
# Buzzer Library Development Steps
|
||||
|
||||
## Version 01
|
||||
|
||||

|
||||
|
||||
Developed initial test functions that accept six values—each corresponding to a pin and its state—to control the LED color.
|
||||
|
||||
---
|
||||
|
||||
## Version 02
|
||||
|
||||

|
||||

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

|
||||
|
||||
Updated the design so the user only needs to enter the first pin; the program automatically calculates the remaining pins.
|
||||
|
||||
---
|
||||
|
||||
## Upcoming Version
|
||||
|
||||

|
||||
|
||||
This will allow users to input values as percentages.
|
||||
|
||||
---
|
||||
|
||||
## Usage Example
|
||||
|
||||

|
||||

|
||||
|
||||
A way to test the library!
|
||||
A way to test the function!
|
||||
|
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 48 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 57 KiB After Width: | Height: | Size: 57 KiB |
31
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
|
||||
|
||||

|
||||

|
||||
|
||||
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.
|
||||
|
||||
---
|
||||
|
||||
|