This is in the SK6812 code at viewtopic.php?f=5&t=1726&p=10015#p10015 - after removing my definition of MX_RMT_BUFFER_1 in supplementary code.In file included from ../main/esp-project.c:20:
../main/esp-project.c: In function 'FCM_Send2Pixel':
R:\sk6812.h:99:61: error: 'MX_RMT_BUFFER_1' undeclared (first use in this function); did you mean 'MX_RMT_BUFFER_X'?
#define FC_CAL_RMT_SetBuffer_1(Idx, St0, Len0, St1, Len1) MX_RMT_BUFFER_1[Idx] = (rmt_item32_t){{{Len0, St0, Len1, St1}}}
^~~~~~~~~~~~~~~
../main/esp-project.c:111:4: note: in expansion of macro 'FC_CAL_RMT_SetBuffer_1'
FC_CAL_RMT_SetBuffer_1(FCL_POS, FCV_TRUE, 24, FCV_FALSE, 24);
^~~~~~~~~~~~~~~~~~~~~~
R:\sk6812.h:99:61: note: each undeclared identifier is reported only once for each function it appears in
#define FC_CAL_RMT_SetBuffer_1(Idx, St0, Len0, St1, Len1) MX_RMT_BUFFER_1[Idx] = (rmt_item32_t){{{Len0, St0, Len1, St1}}}
^~~~~~~~~~~~~~~
../main/esp-project.c:111:4: note: in expansion of macro 'FC_CAL_RMT_SetBuffer_1'
FC_CAL_RMT_SetBuffer_1(FCL_POS, FCV_TRUE, 24, FCV_FALSE, 24);
Esp_RMT::SetBuffer is working correctly when I use my own definition
Martin