diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..7095000 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,7 @@ + + +set(COMPONENT_ADD_INCLUDEDIRS + "." +) + +register_component() \ No newline at end of file diff --git a/PxMatrix.h b/PxMatrix.h index 74759f6..8655d34 100644 --- a/PxMatrix.h +++ b/PxMatrix.h @@ -96,7 +96,7 @@ BSD license, check license.txt for more information struct spi_struct_t { spi_dev_t * dev; #if !CONFIG_DISABLE_HAL_LOCKS - xSemaphoreHandle lock; + SemaphoreHandle_t lock; #endif uint8_t num; }; @@ -777,7 +777,7 @@ inline void PxMATRIX::fillMatrixBuffer(int16_t x, int16_t y, uint8_t r, uint8_t // invert block_y so remaining translation will be more sane uint8_t block_y_inv = 1 - block_y; uint8_t block_x_inv = blocks_x_per_panel - block_x - 1; - uint8_t block_linear_index; + uint8_t block_linear_index = 0; if (_scan_pattern==WZAGZIG2) { block_linear_index = block_x_inv * 2 + block_y; } @@ -1494,4 +1494,4 @@ void PxMATRIX::clearDisplay(bool selected_buffer) { #endif } -#endif \ No newline at end of file +#endif diff --git a/component.mk b/component.mk new file mode 100644 index 0000000..7fa03eb --- /dev/null +++ b/component.mk @@ -0,0 +1,2 @@ +COMPONENT_ADD_INCLUDEDIRS := . +COMPONENT_SRCDIRS := . \ No newline at end of file