You don’t need to do the whole getChannelFromPin( PinType.PWM, 9 ). The constructor only requires you to input the number corresponding to which PWM port your Spark is plugged in, so in this case, you would only just put Spark intake = new Spark(9);
@fr3sh The NavX ExpansionIO example defines PinType and the function getChannelFromPin. If you want to use those in your own code, you can copy them into your project. Or you can just manually look up the right port from that page.