ผมพึ่งสั่ง 7 segment ที่เป็น mudule อะครับ แต่จำเป็ต้องต่อกับ analog 1-3 จาก code พี่พี่ให่มามันไม่ติดอะครับ แต่ถ้าเป็น digitalpin มันติด ขอความช่วยเหลือหน่อยนะครับ เหลือแค่อันนี้อันเดียวจะเสรจละ
ขอบคุนครับ
น่าจะผิดซักจุดผมไม่แน่ใจ เพราะขา analog สามารถทำงานได้เหมือนขา digital ครับ
pinMode(A0, OUTPUT);
digitalWrite(A0, HIGH);
The analog pins can be used identically to the digital pins, using the aliases A0 (for analog input 0), A1, etc. For example, the code would look like this to set analog pin 0 to an output, and to set it HIGH:
https://www.arduino.cc/en/Tutorial/AnalogInputPins