From ba53616151e2c7c13bcc3aaeb333378b364f861d Mon Sep 17 00:00:00 2001 From: Fatima Idrees Date: Tue, 3 Jun 2025 12:45:51 +0300 Subject: [PATCH] LED Done --- Spark_Digital/README.md | 66 +++++++++++++++++++++++++++++++ Spark_Digital/Spark_LED/README.md | 62 ++--------------------------- 2 files changed, 70 insertions(+), 58 deletions(-) create mode 100644 Spark_Digital/README.md diff --git a/Spark_Digital/README.md b/Spark_Digital/README.md new file mode 100644 index 0000000..783fe42 --- /dev/null +++ b/Spark_Digital/README.md @@ -0,0 +1,66 @@ +# Digital Library for MicroBlocks + +Welcome to the **Digital 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 these modules: **Buzzer, LED, Button, Photo Interrupter, Tilt Switch, Touch,** and **Horn** using simple blocks in MicroBlocks. + +--- + +## Features + +- **Easy Drag-and-Drop Blocks** for controlling your LED. +- **No Coding Required**. +- **Beginner-Friendly Instructions**. +- **Control the Digital Modules Easily**. + +--- + +## Getting Started + +**What you need:** +- Spark microcontroller and connecting wires. +- MicroBlocks IDE installed ([Download here](https://microblocks.fun/download/)). +- Digital Modules and basic connecting wires. + +--- + +## Installation + +1. **Download the Digital Library:** + Download the library file from [here](../Spark_Digital.ubl). + +2. **Open MicroBlocks IDE** on your computer. + +3. **Add the Library:** + - Go to the library manager in MicroBlocks. + - Click “Import Library” or drag and drop the downloaded file into the IDE. + +--- + +## How to Use + +1. **Connect your module** 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 digital blocks** in the blocks menu. + +4. **Drag the blocks** you want to use into your script area. + +5. **Click the green flag** or “Run” to start controlling the module! + +--- +## Examples + +There is special examples for each module: + +- [**Button**](Spark_Digital/Spark_Button/README.md) +- [**Buzzer**](Spark_Digital/Spark_Buzzer/README.md) +- [**LED**](Spark_Digital/Spark_LED/README.md) +- [**Photo Interrupter**](Spark_Digital/Spark_PhotoInterrupter/README.md) +- [**Tilt Switch**](Spark_Digital/Spark_Spark_TiltSwitch/README.md) +- [**Touch**](Spark_Digital/Spark_Touch/README.md) + +--- + +*Have fun building with Spark Kit!* + diff --git a/Spark_Digital/Spark_LED/README.md b/Spark_Digital/Spark_LED/README.md index 6e02fea..2047d6e 100644 --- a/Spark_Digital/Spark_LED/README.md +++ b/Spark_Digital/Spark_LED/README.md @@ -1,56 +1,7 @@ -# LED Library for MicroBlocks +# LED Versions +Displaying the version and its functions with examples. -Welcome to the **LED 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 LED using simple blocks in MicroBlocks. - ---- - -## Features - -- **Easy drag-and-drop blocks** for controlling your LED. -- **No coding required**. -- **Turn on & off the LED**. -- **Control the brightness of the LED**. -- **Beginner-friendly instructions**. - ---- - -## Getting Started - -**What you need:** -- Spark microcontroller and connecting wires. -- MicroBlocks IDE installed ([Download here](https://microblocks.fun/download/)). -- A LED and basic connecting wires. - ---- - -## Installation - -1. **Download the LED Library:** - Download the library file from [here](../Spark_Digital.ubl). - -2. **Open MicroBlocks IDE** on your computer. - -3. **Add the Library:** - - Go to the library manager in MicroBlocks. - - Click “Import Library” or drag and drop the downloaded file into the IDE. - ---- - -## How to Use - -1. **Connect your LED** 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 LED blocks** in the blocks menu. - -4. **Drag the blocks** you want to use into your script area. - -5. **Click the green flag** or “Run” to start controlling your fan! - ---- -## Examples +## Version 01 In these functions, you must specify the digital pin corresponding to the module you are using. @@ -60,9 +11,4 @@ This function accepts two values from you: one to turn the LED on, and one to tu ![](Images/2.png) *Example 2* -This function takes a number between 0 and 1023 to control the brightness of the LED. - ---- - -*Have fun building with your LED!* - +This function takes a number between 0 and 1023 to control the brightness of the LED. \ No newline at end of file