Home
last modified time | relevance | path

Searched refs:tone (Results 1 – 3 of 3) sorted by relevance

/AliOS-Things-master/solutions/eduk1_demo/k1_apps/musicbox/
A Dmusicbox.md48 在本实验中,我们实现了tone和noTone两个方法。其中,tone方法用于驱动蜂鸣器发出特定频率的声音,也就是“音调”。noTone方法用于关闭蜂鸣器。
49 值得注意的是,在tone方法中,pwm的占空比固定设置为0.5,这代表在一个震动周期内,蜂鸣器的振膜总是一半时间在上,一半时间在下。在这里改变占空比并不会改变蜂鸣器的功率,所以音量大小不会改变。
53 void tone(uint16_t port, uint16_t frequency, uint16_t duration)
109 这样,我们就可以采用tone方法来发出对应的音调。
111 tone(0, NOTE_B7, 100)
116 我们的tone方法有两个需要关注的参数:frequency决定了播放的音调,duration决定了该音调播放的时长,也就是节拍。因此我们在读简谱时,也需要关注这两个参数。
166 了解了音符和八度后,我们可以开始填写音调数组,这个数组里的每个元素对应 tone 方法的 frequency 参数。
185 因此我们可以得到节拍数组,这个数组里的每个元素对应 tone 方法的 duration 参数。
245 // 使用 tone 方法播放音调
246 tone(0, note, noteDuration);
[all …]
A Dmusicbox.c129 void tone(uint16_t port, uint16_t frequency, uint16_t duration) in tone() function
197 tone(0, note, noteDuration); in musicbox_task()
/AliOS-Things-master/components/SDL2/src/image/external/jpeg-9b/
A DREADME206 titled "Digital Compression and Coding of Continuous-tone Still Images,
209 Continuous-tone Still Images, Part 2: Compliance testing" and has document
225 Information technology - Digital compression and coding of continuous-tone

Completed in 5 milliseconds