On the PI you can have control of the GPIO pins by using the file functions
OpenToWrite() and
WriteByte()
AGK Documentation wrote: "On Raspberry Pi you can use this command to open a GPIO pin for writing by using the filename "gpio:" followed by the GPIO pin number, for example OpenToWrite(1, "gpio:4"), this is case sensitive. You can then use WriteByte to write 0 or 1 to the pin and CloseFile to close the pin."
This allows you so set a pin voltage high or low.
It doesnt allow you to set up hardware controlled PWM on a pin or to use the UART or SPI pins. You can make a crude PWM output based on timers in side of AGK2 by turning the pin on and off at regular intervals.
PLEASE NOTE: These functions just set the pin voltages and you would still need to connect a servo driver PCB or IC to actually control a motor. The pin alone doesnt have enough current sourcing capability to drive a servo/motor by itself
For hardware PWM, you would need to write a teir 2 program or a plugin to access the more complex I/O functionality through wiringpi or BCM8235 libraries.