ใช้ไลบารี thread จะเขียนโค้ดสั่นลงครับ
ลองดูตัวนีี้ https://github.com/ivanseidel/ArduinoThread
ติดต่อ AllNewStep