Hi, I would like to use the GPIO 25 and 26 pins in the header for I2C, so I am setting them up as follows in MicroPython:
from machine import Pin, I2C
i2c = I2C(1, scl=Pin(26), sda=Pin(25), freq=400000)
However, the description says that "G36/G25 share the same port, when one of the pins is used, the other pin should be set as a floating input" and provides the following example
For example, to use the G36 pin as the ADC input, Configuration the G25 pin as FLOATING
setup()
{
M5.begin();
pinMode(36, INPUT);
gpio_pulldown_dis(GPIO_NUM_25);
gpio_pullup_dis(GPIO_NUM_25);
}
It seems that I should set GPIO36 to Floating. How does one do this in MicroPython, and where could one find such settings in the documentation? I have looked for a couple of hours and can't find this anywhere.
Jack
PS How do you create a code window on this board?