mirror of
https://github.com/whowechina/aic_pico.git
synced 2025-02-21 04:46:41 +01:00
Support up to 64 RGB LEDs
This commit is contained in:
parent
dfa6cb7edf
commit
b0d9980023
Binary file not shown.
@ -95,7 +95,7 @@ I'll let these images do the talk.
|
||||
<img src="doc/pico_assemble_4.jpg" width="40%">
|
||||
|
||||
#### Notes
|
||||
* The firmware supports up to 16 LEDs on the WS2812B LED strip. I personally used 3 as shown in main title image. But you can experiment with different LED numbers, as long as they fit within the housing.
|
||||
* The firmware supports up to 64 LEDs on the WS2812B LED strip. I personally used 3 as shown in main title image. But you can have different LED number, as long as they fit within the housing.
|
||||
* LED might be excessively bright even at low settings, consider covering it with some filter tape.
|
||||
* The mode switch on PN532 must be in "I2C" mode, picture below shows the correct settings.
|
||||
<img src="doc/pn532_i2c.jpg" width="40%">
|
||||
|
@ -21,7 +21,7 @@
|
||||
#include "board_defs.h"
|
||||
#include "config.h"
|
||||
|
||||
static uint32_t rgb_buf[16];
|
||||
static uint32_t rgb_buf[64];
|
||||
static uint8_t led_gpio[] = LED_DEF;
|
||||
#define RGB_NUM (sizeof(rgb_buf) / sizeof(rgb_buf[0]))
|
||||
#define LED_NUM (sizeof(led_gpio))
|
||||
|
@ -103,7 +103,7 @@ static void core1_loop()
|
||||
mutex_exit(&core1_io_lock);
|
||||
}
|
||||
cli_fps_count(1);
|
||||
sleep_ms(1);
|
||||
sleep_us(500);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user