Page 264 - เอกสารประกอบการสอนวิชาไมโครคอนโทรลเลอร์เบื้องต้น
P. 264

เอกสารประกอบการสอนวิชาไมโครคอนโทรลเลอร์เบื้องต้น    24



               ...........................................................................................................................................................................

               การทดลองที่ 5.4 Software Serial


               Hardware Required

                     Arduino or Genuino Board
















               Circuit / Schematics



























               Code

               /*
                 Software serial multple serial test

                Receives from the hardware serial, sends to software serial.
                Receives from software serial, sends to hardware serial.

                The circuit:

                * RX is digital pin 10 (connect to TX of other device)
                * TX is digital pin 11 (connect to RX of other device)

                Note:




               หน่วยที่ 5  ไลบรารี่โปรแกรมส าหรับ Arduino และการอ่านค่าแอนะล็อก                            เรียบเรียงโดยครูทันพงษ์  ภู่รักษ์
   259   260   261   262   263   264   265   266   267   268   269