Code: EZB Manager
The EZ_Builder.EZBManager is a helper class that makes accessing I/O very easy, by doing the complicated work for you. Within the EZBManager are methods to read adc, read digital, set digital, set servo positions, etc..
The EZ_Builder.EZBManager also has an array of EZB objects. Each EZB object is a physical EZB. This is an array because the user’s project can have up to 128 EZ-B’s defined. It’s always safe to assume that the first (index zero) EZ-B is default, which is why EZBManager.EZBs is commonly used for raw commands that are not using the EZBManager helper methods.
It is highly recommended to use the EZ_Builder.EZBManager instead of raw commands directly to the EZB. Here are some examples of using the EZBManager methods, to demonstrate how much more convenient they are for moving servos, specifically...
For detailed examples, remember that DJ Sures releases all his plug-ins open source, which means you can examine for reference. Here is a link to all of DJ's plugins: http://www.ez-robot.com/EZ-Builder/Plugins/DJ-Sures