Convert 2 bits to a bar type
@protected BarcodeHMBar fromBits(int bits) => BarcodeHMBar.values[bits];