本文主要是介绍用Arduino来演奏Despacito【Arduino玩具】,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
用Arduino来演奏Despacito教程
演示视频:
Arduino 演奏西班牙神曲 Despacito
接线图:
程式/代码:
/** Project: Despacito* * Author: Mun Kim robotix.kim@gmail.com* Last Edited: Dec.31st.2020*/#define Speaker 3 // speaker signal on D3
#define Drum 5 // relay signal on D5
#define Interval 160
#define NoteSpacing 16const uint16_t Notes[]={0,31,33,35,37,39,41,44,46,49,52,55,58,62,65,69,73,78,82,87,93,98,104,110,117,123,131,139,147,156,165,175,185,196,208,220,233,247,262,277,294,311,330,349,370,392,415,440,466,494,523,554,587,622,
这篇关于用Arduino来演奏Despacito【Arduino玩具】的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!