Reference for Wiring version 1.0 Build 0100+ If you have a previous version, use the reference included with your software. If see any errors or have any comments, let us know.
||The enablePower() and disablePower() methods enable and disable power to specific devices or sections of the Wiring hardware. By default power is enabled in all sections on the Wiring board. Note that the Wiring functionality regarding a specific section will stop by disabling power. These methods are useful to do efficient power management in conditions where power is very limited or has to be very efficient. The methods are provided for advanced users who know exactly what they are doing. Sections / features are encapsulated by constants as follow: POWER_ADC (analog input), POWER_SPI (SPI), POWER_WIRE (Wire), POWER_TIMER0 (Timer0, disbling this will stop all Wiring activity), POWER_TIMER1 (Timer1), POWER_TIMER2 (Timer2), POWER_TIMER3 (Timer3), POWER_TIMER4 (Timer4), POWER_TIMER5 (Timer5), POWER_SERIAL0 (Serial), POWER_SERIAL1 (Serial1) and POWER_ALL (all the above). The power management functions provide a method to stop the clock to individual peripherals to reduce power consumption.
Note: calling enablePower() or disablePower() commands might have no effect on some microcontroller (atmega128 for example).
||constant: POWER_ADC, POWER_SPI, POWER_WIRE, POWER_TIMER0, POWER_TIMER1, POWER_TIMER2, POWER_TIMER3, POWER_TIMER4, POWER_TIMER5, POWER_SERIAL0, POWER_SERIAL1 or POWER_ALL
Updated on July 07, 2011 11:08:09pm PDT