|
4 | 4 | *
|
5 | 5 | * MIT License
|
6 | 6 | *
|
7 |
| -* Copyright (c) 2023 awawa-dev |
| 7 | +* Copyright (c) 2023-2024 awawa-dev |
8 | 8 | *
|
9 | 9 | * https://github.com/awawa-dev/HyperSerialPico
|
10 | 10 | *
|
@@ -335,7 +335,7 @@ class Neopixel : public LedDriver, public DmaClient
|
335 | 335 |
|
336 | 336 | smConfig = (timingType == NeopixelSubtype::ws2812b) ?
|
337 | 337 | neopixel_ws2812b_program_get_default_config(programAddress) : neopixel_program_get_default_config(programAddress);
|
338 |
| - |
| 338 | + |
339 | 339 | sm_config_set_sideset_pins(&smConfig, _pin);
|
340 | 340 | }
|
341 | 341 |
|
@@ -501,7 +501,7 @@ class Dotstar : public LedDriver, public DmaClient
|
501 | 501 | dmaConfigure(pio0, 0);
|
502 | 502 | resetTime = _resetTime;
|
503 | 503 |
|
504 |
| - spi_init(_spi, 10000000); |
| 504 | + spi_init(_spi, 10000000); |
505 | 505 | gpio_set_function(_clockpin, GPIO_FUNC_SPI);
|
506 | 506 | gpio_set_function(_datapin, GPIO_FUNC_SPI);
|
507 | 507 | bi_decl(bi_4pins_with_func(PICO_DEFAULT_SPI_RX_PIN, _datapin, _clockpin, PICO_DEFAULT_SPI_CSN_PIN, GPIO_FUNC_SPI));
|
@@ -538,7 +538,7 @@ class DotstarType : public Dotstar
|
538 | 538 | {
|
539 | 539 | public:
|
540 | 540 |
|
541 |
| - DotstarType(int _ledsNumber, spi_inst_t* _spi, int _dataPin, int _clockPin) : |
| 541 | + DotstarType(int _ledsNumber, spi_inst_t* _spi, int _dataPin, int _clockPin) : |
542 | 542 | Dotstar(RESET_TIME, _ledsNumber, _spi, _dataPin, _clockPin, (_ledsNumber + 2) * sizeof(colorData))
|
543 | 543 | {
|
544 | 544 | }
|
|
0 commit comments