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>Syntax</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" class="arguments"> 28 <tr> 29<th>battery</th> 30<td>Specifies the battery value passed from <CODE>WPADRead</CODE> within the <CODE>status</CODE> structure.</td> 31 </tr> 32</table> 33 34 35<h2>Return Values</h2> 36<p> 37Returns a value on a five-segment scale (0 - 4) corresponding to battery power remaining. 38</p> 39 40<h2>Description</h2> 41<p> 42This function converts the Wii Balance Board's battery value to a value on a five-segment scale (0 - 4) similar to that of the Wii Remote. 43</p> 44 45<h2>See Also</h2> 46<p> 47None. 48</p> 49 50<h2>Revision History</h2> 51<p>2007/08/31 Initial version.</p> 52<hr><p>CONFIDENTIAL</p></body> 53</html> 54