File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
FunHouse_Arduino_Demos/selftest Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ uint8_t LED_dutycycle = 0;
19
19
uint16_t firstPixelHue = 0 ;
20
20
21
21
void setup () {
22
+ // while (!Serial);
22
23
Serial.begin (115200 );
23
24
delay (100 );
24
25
@@ -73,10 +74,10 @@ void setup() {
73
74
pinMode (LED_BUILTIN, OUTPUT);
74
75
pinMode (SPEAKER, OUTPUT);
75
76
76
- ledcSetup (0 , 2000 * 80 , 8 );
77
+ ledcSetup (0 , 2000 , 8 );
77
78
ledcAttachPin (LED_BUILTIN, 0 );
78
79
79
- ledcSetup (1 , 2000 * 80 , 8 );
80
+ ledcSetup (1 , 2000 , 8 );
80
81
ledcAttachPin (SPEAKER, 1 );
81
82
ledcWrite (1 , 0 );
82
83
}
@@ -264,8 +265,8 @@ void loop() {
264
265
}
265
266
266
267
267
- void tone (uint8_t pin, float frequecy , float duration) {
268
- ledcSetup (1 , frequecy * 80 , 8 );
268
+ void tone (uint8_t pin, float frequency , float duration) {
269
+ ledcSetup (1 , frequency , 8 );
269
270
ledcAttachPin (pin, 1 );
270
271
ledcWrite (1 , 128 );
271
272
delay (duration);
You can’t perform that action at this time.
0 commit comments