67 lines
1.9 KiB
Markdown
67 lines
1.9 KiB
Markdown
# 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 the module.
|
||
- **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!*
|
||
|