/*
ปรับพฤติกรรม LED (digital) ด้วยการหมุน dimmer (potentiometer)
โดย เมื่อ potentiometer มีค่า 0-500 LED ทั้งสามควรมี pattern แบบที่หนึ่ง
เมื่อ potentiometer มีค่าประมาณ 1000-1500 LED ทั้งสามควรมี pattern แบบที่สอง
เมื่อ potentiometer มีค่าประมาณ 2500-3000 LED ทั้งสามควรมี pattern แบบที่สาม
เมื่อ potentiometer มีค่าประมาณ 3500-4000 LED ทั้งสามควรมี pattern แบบที่สี่
ที่เหลือ ตีความเอาเองเลยครับ
*/
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}