Closed adkron closed 9 years ago
Slice on the tessel does not match slice in node. I was trying to use it to shift around some bits before writing to the ht16k33 backpack. https://github.com/BinaryNoggin/backpack-ht16k33
> var row = [0,0,1,1,1,1,0,0] undefined > row [ 0, 0, 1, 1, 1, 1, 0, 0 ] > row.slice(-1) [ 0 ] > row.slice(0,-1) [ 0, 0, 1, 1, 1, 1, 0 ] > row.slice(-1).concat(row.slice(0,-1)) [ 0, 0, 0, 1, 1, 1, 1, 0 ] >
tessel repl
> var row = [0,0,1,1,1,1,0,0] [ 0, 0, 1, 1, 1, 1, 0, 0 ] > row.slice(-1) [ null, 0, 0, 1, 1, 1, 1, 0, 0 ] > row.slice(0,-1) [] > row.slice(-1).concat(row.slice(0,-1)) [ null, 0, 0, 1, 1, 1, 1, 0, 0 ]
Slice on the tessel does not match slice in node. I was trying to use it to shift around some bits before writing to the ht16k33 backpack. https://github.com/BinaryNoggin/backpack-ht16k33
node repl
tessel repl