docs: def set_resolution(self, resolution=1090):
          """
          Set the resolution of the sensor
  
          The resolution value is the amount of steps recorded in a single Gauss. The possible options are:
  
          =======================  ==========  =============
          Recommended Gauss range  Resolution  Gauss per bit
          =======================  ==========  =============
          0.88 Ga                  1370        0.73 mGa
          1.3 Ga                   1090        0.92 mGa
          1.9 Ga                   820         1.22 mGa
          2.5 Ga                   660         1.52 mGa
          4.0 Ga                   440         2.27 mGa
          4.7 Ga                   390         2.56 mGa
          5.6 Ga                   330         3.03 mGa
          8.1 Ga                   230         4.35 mGa
          =======================  ==========  =============
  
          :param resolution: The resolution of the sensor
          """
          options = {
              1370: 0,
              1090: 1,
              820: 2,
              660: 3,
              440: 4,
              390: 5,
              330: 6,
              230: 7
          }
  
          if resolution not in options.keys():
              raise Exception('Resolution of {} steps is not supported'.format(resolution))
  
          self.resolution = resolution
  
          config_b = 0
          config_b &= options[resolution] << 5
          self.i2c_write_register(0x01, config_b)