If you want to use Arduino Leonardo, you should change digital pin D3 instead of digital pin D2. The following code is only used in UNO and Mega2560. If using an Arduino UNO and you want to use interrupt port 0 (Int.0), you need to connect digital pin D2 on the board. (We selected D2, Interrupt 0 in this tutorial). We are using D2&D3 as driving pins, you can select other ones, but it requires at least 1 interrupt pin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |