Skip to content

Commit 759c0b6

Browse files
authored
fixed issue in setting LED driver frequency in function ledDriverInit()
1 parent b32ac8f commit 759c0b6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/SparkFunSX1509.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,6 @@ void SX1509::ledDriverInit(uint8_t pin, uint8_t freq /*= 1*/, bool log /*= false
286286
{
287287
// _clkX = 2000000.0 / (1 << (1 - 1)); // Update private clock variable
288288
_clkX = 2000000.0;
289-
clock(INTERNAL_CLOCK_2MHZ); // enable internal 2MHz clock
290289

291290
// uint8_t freq = (1 & 0x07) << 4; // freq should only be 3 bits from 6:4
292291
// tempByte |= freq;

0 commit comments

Comments
 (0)