Reinstate ledmap on 2D

FX.h / FX_2Dfcn.cpp: 
- setUpMatrix with reset option (create 1:1 matrix) and customMappingTable[customMappingTable[x]] 

FX_fcn.cpp: 
- deserializeMap: also for 2D, use setUpMatrix
This commit is contained in:
Ewoud
2022-11-22 10:00:53 +01:00
parent b0b78a9959
commit f1088a6ed7
5 changed files with 212 additions and 193 deletions

View File

@@ -105,7 +105,7 @@
}
}
//WLEDMM util function
const initCap = (s) => {
function initCap(s) {
if (typeof s !== 'string') return ''
return s.charAt(0).toUpperCase() + s.slice(1)
}