GPIO (and I2C) support unfortunately is removed from core. You can try 3rd party addons via HACS, for example.
More info: Removal of GPIO support
GPIO (and I2C) support unfortunately is removed from core. You can try 3rd party addons via HACS, for example.
More info: Removal of GPIO support