Sha256: e1ce2fa5fd76f65e6ef363cc26c71a89cd7e6eac639400768bf3dad300c86fee

Contents?: true

Size: 1.9 KB

Versions: 2

Compression:

Stored size: 1.9 KB

Contents

make some kind of use of these mappings...
 MMAP_COORDS_256 = {
    [0,0] => {
      :top    => ["00001111"],
      :bottom => ["11110000"],
      :left   => ["00000000"],
      :right  => ["11111111"]
    },

    [15,15] => {
      :top    => ["11110000"],
      :bottom => ["00001111"],
      :left   => ["11111111"],
      :right  => ["00000000"]
    },

    [7,7] => {
      :top    => ["01111000"],
      :bottom => ["10000111"],
      :left   => ["01110111"],
      :right  => ["10001000"]
    },

    [2,9] => {
      :top    => ["10011101"],
      :bottom => ["01100010"],
      :left   => ["00101001"],
      :right  => ["11010110"]
    },

    [10,4] => {
      :top    => ["01000101"],
      :bottom => ["10111010"],
      :left   => ["10100100"],
      :right  => ["01011011"]
    }
  }

  PMAP_COORDS_TO_MMAP_COORDS = {
      #pmap      #mmap
      :top    => :right,
      :bottom => :left,
      :left   => :top,
      :right  => :bottom
  }

  MMAP_ROW_256 = {
    [1,255] => {
      #left to right, 11111111
      :right  => ["01001110", "11111111"],
      :bottom => ["01011110", "11111111"],
      :left   => ["01000001", "11111111"],
      :top    => ["01010001", "11111111"]
    },

    [1,0] => {
      #left to right, 00000000
      :right  => ["01001110", "00000000"],
      :bottom => ["01011110", "00000000"],
      :left   => ["01000001", "00000000"],
      :top    => ["01010001", "00000000"]
    },

    [1,197] => {
      #left to right, 10100011
      :right  => ["01001110", "10100011"],
      :bottom => ["01011110", "11000101"],
      :left   => ["01000001", "11000101"],
      :top    => ["01010001", "10100011"]
    },

    [1, 197, 47] => {
      #left to right, 1010001111110100
      :right  => ["01101110", "11110100", "10100011"],
      :bottom => ["01111110", "11000101", "00101111"],
      :left   => ["01100001", "11000101", "00101111"],
      :top    => ["01110001", "11110100", "10100011"]
    }
  }

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
monome_serial-1.1.0 docs/TODO
monome_serial-1.0.0 docs/TODO