1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2<html>
3<head>
4<META http-equiv="Content-Type" content="text/html; charset=windows-1252">
5<META http-equiv="Content-Style-Type" content="text/css">
6<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css">
7<title>KPAD sample demo program (weight)</title>
8</head>
9
10<body>
11
12<h1>weight</h1>
13
14<h2>Location</h2>
15<p>
16<code>$REVOLUTION_SDK_ROOT/build/demos/kpaddemo</code>
17</p>
18
19<H2>Description</H2>
20<p>
21This sample program confirms the sensor values reported from the four corners of the Wii Balance Board and the body weight calculated from those values when using the KPAD library.</p>
22
23<h3>Initialization</h3>
24<p>
25Just as with the Wii Remote, the Wii Balance Board must be registered with the Wii Console. Although registration information is saved on the Wii Console, rather than allowing it to be saved as it was during the development of the Japanese version of WiiFit, it is saved in WiiFit save data. It is therefore necessary to register a special buffer in the WPAD library using the <A HREF="../../wpad/WPADRegisterBLCWorkarea.html"><code>WPADRegisterBLCWorkarea</code></a> function before initializing the WPAD library because it is necessary to get registration information in the save data in the case of applications for the Japanese market.
26</p>
27
28<h3>Calibration</h3>
29<p>
30The Wii Balance Board must be calibrated first. Calibration is performed within the KPAD library. Note that sensor values obtained during calibration cannot be used.
31</p>
32
33<h3>Source Code Files</h3>
34<TABLE border="1" cellpadding="3" width="95%">
35  <TBODY>
36    <TR>
37<TD>weight.c</TD>
38<TD>Gets the weight and values for the four corner sensors of the Wii Balance Board and displays them on the screen.</TD>
39    </TR>
40  </TBODY>
41</TABLE>
42
43<h2>See Also</h2>
44<P>None.</P>
45
46<H2>Revision History</H2>
47<P>
482008/04/17 Initial version.<br>
49</P>
50
51<hr><p>CONFIDENTIAL</p></body>
52</html>