> For the complete documentation index, see [llms.txt](https://kb32ft.makerasia.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kb32ft.makerasia.com/getstart/arduino-ide-1/library-arduino-ide.md).

# KB32-FT Library Install

## ขั้นตอนการติดตั้งโปรแกรมตัวอย่าง Library <a href="#library" id="library"></a>

การติดตั้งโปรแกรมตัวอย่าง คือ การลงโปรแกรมเสริม หรือ Code สำหรับใช้งานกับ Shield โมดูล หรือ เซนเซอร์ต่าง ๆ ที่ผู้พัฒนาได้มีการพัฒนาให้บอร์ดสามารถใช้งานได้กับอุปกรณ์ต่าง ๆ ที่มีออกมาจำหน่ายอย่างต่อเนื่องซึ่งจำเป็นกับผู้เริ่มต้น เนื่องจากทำให้ผู้ใช้งานประหยัดเวลา มีความสะดวกและ ง่ายมากยิ่งขึ้นในการพัฒนา โดยมีการเพิ่ม Library อยู่ 2 แบบหลักคือ

1. การเพิ่ม Library โดยวิธี Manage Libraries... (สามารถติดตั้งได้ผ่านช่องทาง Online)
2. การเพิ่ม Library โดยวิธี Add.ZIP Library...

**โดยการเลือกใช้งาน เมนู Sketch >> Include Library >> ... ดังรูป**&#x20;

![Sketch >> Include Library >>](https://nazt-cmmc.gitbooks.io/cmmc-iot-books/content/images/introduction17.JPG)

## **การเพิ่ม Library โดยวิธี Add .ZIP Libraries...**&#x20;

เป็นการเพิ่ม Library ของทางผู้พัฒนาบอร์ด KB32-FT ซึ่ง .Zip Libraries ที่แนะนำจะมี 2 ตัวอย่างให้ใช้งานคือ ตัว Library ที่เกี่ยวกับจอแสดงผล ซึ่งจอแล้วสามารถใช้ Library ปกติของ Arduino ได้เลย

### 1.Library จอ LCD TFT ลิงค์ [Download](https://github.com/kkmonster/TFT_eSPI_KB32)

{% embed url="<https://github.com/kkmonster/TFT_eSPI_KB32>" %}

### 2.Library จอ LED Matrix ลิงค์ [Download](https://github.com/kkmonster/KB32_LED_Matrix)

{% embed url="<https://github.com/kkmonster/KB32_LED_Matrix>" %}

* [ ] ตัวอย่างหน้าต่าง Download Library แบบ .ZIP

![](/files/-MQw8Md4Yhw8i6OJQrvJ)

### 3.วิธีการติดตั้ง Library แบบ Add .ZIP

* [ ] โดยการเลือกใช้งานเมนูSketch >> Include Library >> Manage Libraries

Sketch >> Include Library >>

* [ ] โปรแกรมจะแสดงหน้าต่างใหม่ขึ้นมาดังรูป เลือกเมนู Add .ZIP Library...

![](/files/-MQw7auZ_6EttwqBuBP5)

* [ ] เลือกไฟล์ที่ Download จามาก Github ไฟล์ .ZIP แล้วกดปุ่ม Open

![](/files/-MQw9bipie38EiR6a8Y0)

* [ ] หน้าต่าง Arduino IDE จะแสดง ข้อความตามรูปด้านล่าง

<div align="center"><img src="/files/-MQwCXzkRQwcugqsqcN6" alt=""></div>

* [ ] ก่อนจะใช้งาน Library อย่าลืมเลือกบอร์ด เป็น ESP32 ก่อนเพราะฉนั้นอาจจะมองไม่เห็น Library

### 4.การเรียกใช้งานโปรแกรมตัวอย่าง

เข้าไปที่เมนู File >> Examples >> TFTeSPI\_KB32-KB32  >> ....

![](/files/-MQwEIhYZY7dJC5sWgwl)

**ตัวอย่าง Library ที่จำเป็นกับบอร์ด KB32-FT**

| Library | by        | current version |
| ------- | --------- | --------------- |
| Blynk   | Volodymyr | 1.0.5           |

ควรอัพเดท Board Manager และ Library ให้เป็นเวอร์ชันล่าสุดอยู่เสมอ


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://kb32ft.makerasia.com/getstart/arduino-ide-1/library-arduino-ide.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
