mirror method

void mirror()

Mirror the bit matrix in order to attempt a second reading.

Implementation

void mirror() {
  for (int x = 0; x < _bitMatrix.width; x++) {
    for (int y = x + 1; y < _bitMatrix.height; y++) {
      if (_bitMatrix.get(x, y) != _bitMatrix.get(y, x)) {
        _bitMatrix.flip(y, x);
        _bitMatrix.flip(x, y);
      }
    }
  }
}