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 pin 9 pada Maker UNO seterusnya | |
membuat kelipan LED L9. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 15 Mac 2019 | |
*/ | |
void setup() | |
{ |
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 isyarat pada butang tekan dan mengawal | |
LED. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 27 Mac 2019 | |
*/ | |
#define LED 9 // LED bersambung pada pin 9 | |
#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 isyarat pada butang tekan dan mengawal | |
LED. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 27 Mac 2019 | |
*/ | |
#define LED 9 // LED bersambung pada pin 9 | |
#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 isyarat pada butang tekan dan mengawal | |
LED. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 27 Mac 2019 | |
*/ | |
#define LED 9 // LED bersambung pada pin 9 | |
#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 kecerahan LED pada pin | |
keluaran analog. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 4 Apr 2019 | |
*/ | |
#define LED3 3 // LED3 bersambung pada pin 3 | |
#define LED4 4 // LED4 bersambung pada pin 4 |
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 kecerahan LED pada pin | |
keluaran analog. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 4 Apr 2019 | |
*/ | |
#define LED3 3 // LED3 bersambung pada pin 3 | |
#define LED5 5 // LED5 bersambung pada pin 5 |
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 kecerahan LED pada pin | |
keluaran analog. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 4 Apr 2019 | |
*/ | |
int ledPin[6] = {3, 5, 6, 9, 10, 11}; // Pin keluaran analog disusun | |
// dalam bentuk pemboleh ubah array |
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 pin 9 dan 10 pada Maker UNO seterusnya | |
membuat kelipan LED L9 dan L10. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 12 Mac 2019 | |
*/ | |
void setup() | |
{ |
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 pin pada Maker UNO seterusnya | |
membuat kelipan LED. | |
Penulis: Idris Zainal Abidin | |
Blog: https://idrisz.my | |
Kemaskini: 12 April 2019 | |
*/ | |
int pin = 0; |
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 | |
*/ | |
void setup() | |
{ |
OlderNewer