Omnibus's picture
Upload 131 files
4ee4376
raw
history blame contribute delete
340 Bytes
import { resize } from './common';
export default (data, map) => {
let view = new Uint8Array(data);
let xplc = [];
view.forEach((bits, i) => {
xplc[i] = bits;
});
// resize data array from 64x64 to 128x128
xplc = resize(xplc, 32, 128);
xplc.forEach((data, i) => {
map.cells[i]._segmentData.XPLC = xplc[i];
});
};