> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/general/getting-start/lvgl-light-and-versatile-embedded-graphics-library/style/exercise.md). Agents can also search and read this documentation through its [MCP server](https://docs.aic-eec.com/~gitbook/mcp).

# Exercise

test your skill with style

ข้อที่ 1 จากแบบฝึกหัด ข้อ1. ใน[แบบฝึกหัดเรื่อง Create your own screen](https://app.gitbook.com/@aic-ecc/s/docs/~/drafts/-MUqjJNPcw1GJyjqwZ1h/c-c++-for-embedded-programming/lvgl-light-and-versatile-embedded-graphics-library/create-your-own-screen/exercise)\
จงทำให้ bar ทั้งสี่แท่งมีสีที่ต่างกัน

> hint ใช้ LV\_BAR\_PART\_MAIN เพื่อใส่ style ลงไป

ข้อที่ 2 จงออกแบบหน้าจอสำหรับ แสดงผลของ smart farm โดยใช้เรื่อง style ที่ได้ศึกษามานี้เพิ่มลงไป

![ตัวอย่าง1](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MUsBB1fVso98K2xYVUR%2F-MUsBzLOxbsFBMu9S_Pr%2FmessageImage_1614776855278.jpg?alt=media\&token=68138bc3-3b8b-4c74-8879-fc8cdf301950)

![ตัวอย่าง2](https://1856353139-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MClo3nC-1US0rbK8Qau%2F-MUsBB1fVso98K2xYVUR%2F-MUsCDJuiq_p-YNpcrG4%2Fimage.png?alt=media\&token=581623e1-e196-4563-98d7-01df1382c1e5)
