2026年1月10日 星期六

[OTTO Biped] OTTO雙足機器人蜂鳴器測試(一)

 程式來源:ottoblockly的範例-01 | 🔈 Cute sounds |

arduino程式:
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <CuteBuzzerSounds.h>


const int buzzer =  13;

void setup() {
  pinMode(13, OUTPUT);
    cute.init(buzzer);

    cute.play(S_connection);

}

void loop() {
    cute.play(S_superHappy);
    cute.play(S_happy);
    cute.play(S_happy_short);
    cute.play(S_sad);
    cute.play(S_confused);
    cute.play(S_cuddly);
    cute.play(S_OhOoh);
    cute.play(S_OhOoh2);
    cute.play(S_surprise);
    cute.play(S_buttonPushed);
    cute.play(S_fart1);
    cute.play(S_sleeping);
    cute.play(S_disconnection);

}

說明:(Gemini生成)


沒有留言:

張貼留言