This commit is contained in:
Fatima Idrees 2025-06-03 12:45:51 +03:00
parent 9a7b278272
commit ba53616151
2 changed files with 70 additions and 58 deletions

66
Spark_Digital/README.md Normal file
View File

@ -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 dont 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 microcontrollers pins (see your boards 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!*

View File

@ -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 dont 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 microcontrollers pins (see your boards 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.
@ -61,8 +12,3 @@ 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!*