Arc Gauge
Lab 2: Arc Widget (Circular Gauge)
1. โครงสร้างภาพรวมของ Lab
Why? - ทำไมต้องเรียนรู้เรื่องนี้
What? - จะได้เรียนรู้อะไร
How? - จะทำอย่างไร

2. หลักการทำงานและ Flowchart
2.1 Arc Geometry (ระบบมุมของ LVGL)
2.2 Gauge Configuration (270-degree sweep)
2.3 Arc Parts (สำหรับ styling)
3. ฟังก์ชันสำคัญ (API Reference)
3.1 Arc Creation & Configuration
Function
Parameters
Description
3.2 Angle & Rotation
Function
Parameters
Description
3.3 Arc Styling
Function / Property
Description
3.4 Make Arc Non-Interactive (Gauge Mode)
4. โค้ดตัวอย่าง (Step-by-Step Code)
4.1 Step 1: Global Variables
4.2 Step 2: Simulated Sensor Data
4.3 Step 3: Timer Callback
4.4 Step 4: Main Function - สร้าง Gauge UI
4.5 UI Layout Summary
5. องค์ความรู้และเทคนิค
5.1 Arc Size ต้องเป็นสี่เหลี่ยมจัตุรัส
5.2 Common Rotation Patterns
5.3 Center Label Pattern
5.4 Multiple Arcs (Nested Gauges)
5.5 Color Zones ด้วย Multiple Indicator Colors
5.6 Performance Tips
6. แบบฝึกหัด (Exercises)
Exercise 1: Speedometer (0-200 km/h)
Exercise 2: Temperature Gauge with Animated Needle (-10 to 50 degC)
7. References
Last updated
Was this helpful?