ซึ่งทำให้ง่ายและสะดวกในการเขียนโค้ด มีคำสั่งให้ใช้งาน เช่น As you turn the potentiometer, the LED receives brighter because the PWM obligation cycle increases. Any time you transform the potentiometer every one of the way, the responsibility cycle reaches one hundred%. The LED is turned on repeatedly at optimum brightness. โดยเรียกฟังก์ชัน led_toggle(...) แล้วอัปเดตค่าของตัวแปร last_u... https://2432075.blogdosaga.com/26744785/the-greatest-guide-to-software-เข-ยน-โปรแกรม-ขอนแก-น