1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 2<html> 3 4<head> 5<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> 6<meta name="GENERATOR" content="Microsoft FrontPage 3.0"> 7<meta http-equiv="Content-Style-Type" content="text/css"> 8<link rel="stylesheet" type="text/css" href="../CSS/revolution.css"> 9<title>WBCGetBatteryLevel</title> 10</head> 11 12<body> 13 14<h1 align="left">WBCGetBatteryLevel</h1> 15 16<h2>C Specification</h2> 17 18<dl> 19 <dd><pre><code>#include <revolution/wbc.h></code></pre> 20 </dd> 21 <dd><pre>s32 WBCGetBatteryLevel ( u8 battery );</pre> 22 </dd> 23</dl> 24 25<h2>Arguments</h2> 26 27<table border="1" cellpadding="3" cellspacing="0.1"> 28 <tr> 29<td width="120" bgcolor="#ffffe8"><code><STRONG><EM>battery</EM></STRONG></code></td> 30<td width="520">Specifies the battery value passed from <CODE>WPADRead</CODE> within the <CODE>status</CODE> structure. </td> 31 </tr> 32 33</table> 34 35 36 37 38 39 40<h2>Return Values</h2> 41 42<p>Returns a value on a five-segment scale (0 - 4) corresponding to battery power remaining.</p> 43 44<h2>Description</h2> 45This function converts the Wii Balance Board accessory's battery value to a value on a five-segment scale (0 - 4) similar to that of the Wii Remote controller. 46<p></p> 47 48 49 50 51<h2>See Also</h2> 52 53 54<h2>Revision History</h2> 55 56<p>2007/08/31 Initial version.</p> 57<hr><p>CONFIDENTIAL</p></body> 58</html> 59