Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


set(COMPONENT_ADD_INCLUDEDIRS
"."
)

register_component()
6 changes: 3 additions & 3 deletions PxMatrix.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -1494,4 +1494,4 @@ void PxMATRIX::clearDisplay(bool selected_buffer) {
#endif
}

#endif
#endif
2 changes: 2 additions & 0 deletions component.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
COMPONENT_ADD_INCLUDEDIRS := .
COMPONENT_SRCDIRS := .