Skip to content

Commit ff713a4

Browse files
committed
name change LEDconfig to BUZZERconfig
1 parent 593cc56 commit ff713a4

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,6 @@ isClickedQueueEmpty KEYWORD2
3939
timeSinceLastClick KEYWORD2
4040
timeSinceFirstClick KEYWORD2
4141
popClickedQueue KEYWORD2
42-
LEDconfig KEYWORD2
42+
BUZZERconfig KEYWORD2
4343
LEDoff KEYWORD2
4444
LEDon KEYWORD2

src/SparkFun_Qwiic_Buzzer_Arduino_Library.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ unsigned long QwiicBuzzer::popClickedQueue()
262262
}
263263

264264
/*------------------------ LED Configuration ------------------------ */
265-
bool QwiicBuzzer::LEDconfig(uint8_t brightness, uint16_t cycleTime, uint16_t offTime, uint8_t granularity)
265+
bool QwiicBuzzer::BUZZERconfig(uint8_t brightness, uint16_t cycleTime, uint16_t offTime, uint8_t granularity)
266266
{
267267
bool success = writeSingleRegister(SFE_QWIIC_BUTTON_LED_BRIGHTNESS, brightness);
268268
success &= writeSingleRegister(SFE_QWIIC_BUTTON_LED_PULSE_GRANULARITY, granularity);
@@ -273,22 +273,22 @@ bool QwiicBuzzer::LEDconfig(uint8_t brightness, uint16_t cycleTime, uint16_t off
273273

274274
bool QwiicBuzzer::LEDoff()
275275
{
276-
return LEDconfig(0, 0, 0);
276+
return BUZZERconfig(0, 0, 0);
277277
}
278278

279279
bool QwiicBuzzer::LEDon(uint8_t brightness)
280280
{
281-
return LEDconfig(brightness, 0, 0);
281+
return BUZZERconfig(brightness, 0, 0);
282282
}
283283

284284
bool QwiicBuzzer::on(uint16_t cycleTime, uint8_t brightness)
285285
{
286-
return LEDconfig(brightness, cycleTime, 0);
286+
return BUZZERconfig(brightness, cycleTime, 0);
287287
}
288288

289289
bool QwiicBuzzer::off()
290290
{
291-
return LEDconfig(0, 0, 0);
291+
return BUZZERconfig(0, 0, 0);
292292
}
293293

294294
/*------------------------- Internal I2C Abstraction ---------------- */

src/SparkFun_Qwiic_Buzzer_Arduino_Library.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class QwiicBuzzer
7575
unsigned long popClickedQueue(); //Returns the oldest value in the queue (milliseconds since first button click), and then removes it.
7676

7777
//LED configuration
78-
bool LEDconfig(uint8_t brightness, uint16_t cycleTime,
78+
bool BUZZERconfig(uint8_t brightness, uint16_t cycleTime,
7979
uint16_t offTime, uint8_t granularity = 1); //Configures the LED with the given max brightness, granularity (1 is fine for most applications), cycle time, and off time.
8080
bool LEDoff(); //Turns the onboard LED off
8181
bool LEDon(uint8_t brightness = 255); //Turns the onboard LED on with specified brightness. Set brightness to an integer between 0 and 255, where 0 is off and 255 is max brightness.

0 commit comments

Comments
 (0)