Using P1 MICRO_GPIO as digital pins from Web IDE

I’m creating the firmware for a P1 based board that needs to drive several MICRO_GPIO pins as output, and use one as input (D0…D7 are otherwise occupied). I have 2 questions,

  1. Can it be done?
  2. Can it be done with source code created in the web based IDE.

It would help if you could state which MICRO_GPIO pins you want to use, but if there is a #define statement in pinmap_hal.h for the desired pins, you can use them like any other pin