title: Raspberry PI : GPIOZERO on I2C pins
body: <p>This is on the Raspberry PI.</p>
  <p>I was able to get the I2C-1 to work properly on the PI using Python.</p>
  <p>Then I ran another Python script that uses one of the I2C pins as a GPIO using the GPIOZERO library.</p>
  <pre><code>  from gpiozero import LED
  
    i2cpin = LED(&quot;BOARD3&quot;)
    i2cpin.on()
    time.sleep(1)
    i2cpin.off()
    i2cpin.close()
  </code></pre>
  <p>However, when I go back to the first program, the I2C stopped working.</p>
  <p>I thought the close() would have reverted the pin function back to default I2C function but it did not.
  I also confirmed using</p>
  <pre><code> i2cdetect -y 1
  </code></pre>
  <p>and confirmed I2C is really not working.</p>
  <p>Without rebooting and how can I reprogram the pin back to I2C function programmatically using python?</p>