Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Arduino Core 3.0.0] RMT IDF5.1 Refactoring #7994

Merged
merged 22 commits into from
May 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3102640
RMT IDF5.1 refactoring
SuGlider Mar 26, 2023
7761121
Merge branch 'esp-idf-v5.1-libs' of https://github.com/SuGlider/ardui…
SuGlider Mar 26, 2023
32792f8
Fixes initial value setting
SuGlider Mar 27, 2023
8e835fd
removed rmtRead() with user callback
SuGlider Apr 17, 2023
bbde8e2
simplify/remove Read data structure
SuGlider Apr 17, 2023
45cb314
Deep API simplification
SuGlider Apr 17, 2023
5ac095b
fixes the examples
SuGlider Apr 17, 2023
087c92d
fix rmt.h
SuGlider Apr 17, 2023
c6fab7a
adds support to APB different frequencies
SuGlider Apr 17, 2023
591357f
fixes CI and not defined RGB_BUILTIN
SuGlider Apr 17, 2023
9805664
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider Apr 18, 2023
546dee8
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider May 3, 2023
4c25027
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider May 4, 2023
991bc89
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider May 7, 2023
6e5583e
new RMT API and examples
SuGlider May 9, 2023
aed1d30
Merge branch 'esp-idf-v5.1-libs' of https://github.com/SuGlider/ardui…
SuGlider May 9, 2023
b09e939
fixing commentaties
SuGlider May 10, 2023
cb0444f
Update esp32-hal-rgb-led.c
SuGlider May 10, 2023
8976897
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider May 11, 2023
78a8ebc
changes Filter API
SuGlider May 11, 2023
85df97e
Fixes example with Filter API
SuGlider May 11, 2023
4dd45a0
Merge branch 'espressif:esp-idf-v5.1-libs' into esp-idf-v5.1-libs
SuGlider May 11, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions cores/esp32/esp32-hal-rgb-led.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,20 @@

void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue_val){
rmt_data_t led_data[24];
static rmt_obj_t* rmt_send = NULL;
static bool initialized = false;

uint8_t _pin = pin;
#ifdef RGB_BUILTIN
if(pin == RGB_BUILTIN){
_pin = RGB_BUILTIN-SOC_GPIO_PIN_COUNT;
_pin = RGB_BUILTIN - SOC_GPIO_PIN_COUNT;
}
#endif

if(!initialized){
if((rmt_send = rmtInit(_pin, RMT_TX_MODE, RMT_MEM_64)) == NULL){
if (!rmtInit(_pin, RMT_TX_MODE, RMT_MEM_NUM_BLOCKS_1, 10000000)){
log_e("RGB LED driver initialization failed!");
rmt_send = NULL;
return;
}
rmtSetTick(rmt_send, 100);
initialized = true;
}

Expand All @@ -43,5 +40,5 @@ void neopixelWrite(uint8_t pin, uint8_t red_val, uint8_t green_val, uint8_t blue
i++;
}
}
rmtWrite(rmt_send, led_data, 24);
rmtWrite(_pin, led_data, RMT_SYMBOLS_OF(led_data), RMT_WAIT_FOR_EVER);
}
Loading