> ## Documentation Index
> Fetch the complete documentation index at: https://docs.deneyapkart.org/llms.txt
> Use this file to discover all available pages before exploring further.

# First Application with Deneyap Mini in Deneyap Kart Blok

* In this example, we will use the Deneyap Blok coding platform to turn the RGB LED on the Deneyap Mini board **red**.
* From the top menu, we select the board. In this example, **Deneyap Mini** is selected.

<Frame caption="Deneyap Kart Blok Board Selection">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-kart-secimi.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=f1c3c7d01048566754c1a4609929d513" data-path="images/DKBlok/DKB-kart-secimi.png" />
</Frame>

* After selecting the board, we choose the port to which the Deneyap Mini is connected.

<Frame caption="Deneyap Kart Blok Port Selection">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-port.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=2cc9fc3c74bfab9c92ccf45fbfe52111" data-path="images/DKBlok/DKB-port.png" />
</Frame>

* Block selections are made from the menu on the left. From the **“Input/Output”** category, we select the command **“use digital pin … at …”**.

<Frame caption="Deneyap Kart Blok Digital Block Selection">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-giriscikis.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=a773b2cbce9342037d096289b4dc03af" data-path="images/DKBlok/DKB-giriscikis.png" />
</Frame>

* This command allows us to send a digital value to a pin. One field in the block is used to specify the pin, and the second field is used to specify the value.

<Frame caption="Deneyap Kart Blok Digital">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-dijital.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=93e85ccd0931d51c230edf4885361dda" data-path="images/DKBlok/DKB-dijital.png" />
</Frame>

* Next, from the **“Math”** category, we select the **“A1”** block. This block is used to define the pin name.

<Frame caption="Deneyap Kart Blok Math Blocks">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-mat.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=9cbbcc62f80e526d9474b9d8cbf659ea" data-path="images/DKBlok/DKB-mat.png" />
</Frame>

* For the red LED, we update the field labeled **“A1”** to **“LEDR”** and place it into the relevant slot of the **“use digital pin … at …”** command as shown below.

<Frame caption="Adding the LEDR Command">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-LEDR.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=02bfcff932f22311feb6ccf9d004fa8f" data-path="images/DKBlok/DKB-LEDR.png" />
</Frame>

* From the menu, we select the **“1 (HIGH)”** block located in the **“Logic”** category. This block allows us to send a **1 (ON)** or **0 (OFF)** command to a pin.

<Frame caption="DKB Logic Blocks">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-mantik.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=339fd0638235cf0fead94502b7954923" data-path="images/DKBlok/DKB-mantik.png" />
</Frame>

* We place this block into the appropriate field of the **“use digital pin … at …”** command as shown below.

<Frame caption="Logic Command Placement">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-RY.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=52294a440aa179bd24bb6213c0f28248" data-path="images/DKBlok/DKB-RY.png" />
</Frame>

* We repeat this process for the green (**LEDG**) and blue (**LEDB**) LEDs as shown below. For convenience, we right-click on the block and use the **duplicate** option.

<Frame caption="Block Duplication">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-cogaltma.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=33ee74b83dc1f0dcecbf2001d0f6489d" data-path="images/DKBlok/DKB-cogaltma.png" />
</Frame>

* After duplicating, we connect the blocks sequentially and update the pin names and values accordingly.

<Frame caption="DKB Multiple Logic Blocks">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-c.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=2b143fdd25c150c5b5386b9e1dc860a8" data-path="images/DKBlok/DKB-c.png" />
</Frame>

* By clicking the **“Upload”** icon shown below, we upload the code to the Deneyap Mini board.

<Frame caption="DKB Code Upload">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-yukle.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=bbe38a008e514e3994203b8080d2df8f" data-path="images/DKBlok/DKB-yukle.png" />
</Frame>

* The upload process can be monitored from the panel that opens on the right side.

<Frame caption="DKB Code Upload Process">
  <img height="400" width="400" src="https://mintcdn.com/t3/EEmcsoQGZyvCPKym/images/DKBlok/DKB-yi.png?fit=max&auto=format&n=EEmcsoQGZyvCPKym&q=85&s=e0cf6a3156f11ee659ccf665b3944be4" data-path="images/DKBlok/DKB-yi.png" />
</Frame>

* As a result, the LED on the Deneyap Mini board lights up **red**.
