This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Menghasilkan nada melodi pada pembaz piezo di | |
papan Maker UNO. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 18 April 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung dengan pin 2 | |
#define BUZZER 8 // Pembaz bersambung dengan pin 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Menghasilkan nada melodi pada pembaz piezo di | |
papan Maker UNO. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 18 April 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung dengan pin 2 | |
#define BUZZER 8 // Pembaz bersambung dengan pin 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Menghasilkan corak cahaya LED di | |
papan Maker UNO. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 19 April 2019 | |
*/ | |
int ledPin = 0; // Pemboleh ubah pin LED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Menghasilkan corak cahaya LED di | |
papan Maker UNO. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 19 April 2019 | |
*/ | |
int ledPin = 0; // Pemboleh ubah pin LED |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Menghasilkan corak cahaya LED di | |
papan Maker UNO. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 19 April 2019 | |
*/ | |
int ledPin = 0; // Pemboleh ubah pin LED | |
int ledUpperPin = 0; // Pemboleh ubah pin untuk set LED atas |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Membaca pin butang tekan dan melaksanakan tugasan | |
gangguan luaran. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 29 April 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung pada pin 2 | |
#define LED12 12 // LED12 bersambung pada pin 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Membaca pin butang tekan dan melaksanakan tugasan | |
gangguan luaran. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 29 April 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung pada pin 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Membaca pin butang tekan dan melaksanakan tugasan | |
gangguan luaran. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 29 April 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung pada pin 2 | |
#define BUZZER 8 // Pembaz bersambung pada pin 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Memaparkan status butang tekan di Serial Monitor | |
melalui komunikasi siri. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 10 Mei 2019 | |
*/ | |
#define BUTTON 2 // Butang tekan bersambung pada pin 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Fungsi kod: Mengawal LED pada pin 3 hingga 7 daripada arahan di | |
Serial Monitor melalui komunikasi siri. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 10 Mei 2019 | |
*/ | |
#define LED3 3 // LED L3 bersambung pada pin 3 | |
#define LED4 4 // LED L4 bersambung pada pin 4 |