This commit is contained in:
fatimaxsen committed 2025-08-02 11:34:14 +03:00
1 parent 360ee7e80b
commit 32b601b79a
16 files changed
+136 -4

No files matched your search

+66
View File
@@ -0,0 +1,66 @@
# 🟧 Multi-Digital Pins
### What are Multi-Digital Pins?
Some modules use **more than one digital pin** to work properly. These pins allow the module to send or receive multiple signals at the same time—for example, controlling multiple LEDs, handling different colors, or measuring distance with precise timing.
---
### Included Modules:
#### 🔌 Inputs:
- [Ultrasonic Sensor](#module-01-ultrasonic-sensor)
#### 💡 Outputs:
- [RGB LED](#module-02-rgb-led)
- [Traffic Light](#module-03-traffic-light)
---
### Module 01: Ultrasonic Sensor
![](../Images/42.png)
#### Block:
![](../Images/45.png)
This sensor reads **distance** from the physical world using ultrasonic sound waves. It uses **two pins**: one to trigger the signal and one to receive the echo.
---
### Module 02: RGB LED
![](../Images/43.png)
#### Block 1:
![](../Images/46.png)
This block controls the **red**, **green**, and **blue** channels using **ON/OFF** values.
#### Block 2:
![](../Images/48.png)
This block controls the brightness of **red**, **green**, and **blue** individually, using values from **0 to 255** to mix custom colors.
---
### Module 03: Traffic Light
![](../Images/44.png)
#### Block 1:
![](../Images/47.png)
This block turns the **red**, **yellow**, and **green** lights **ON or OFF**.
#### Block 2:
![](../Images/49.png)
This block allows you to adjust the **brightness** of the red, yellow, and green lights using values from **0 to 255**.
---