Line 226:
Line 226:
The Wii Balance Board presents the same status information as the Wiimote
The Wii Balance Board presents the same status information as the Wiimote
+
+
== Using the Balance Board in Homebrew ==
+
''This was taken from the [[Balance Board Tools]] application''
+
+
<source lang="c">
+
WPAD_ScanPads();
+
for (i=0;i<WPAD_MAX_WIIMOTES;i++) //always check that's its there
+
{
+
u32 devtype;
+
WPAD_Probe(i,&devtype);
+
if (devtype==WPAD_EXP_WIIBOARD)
+
{
+
WPAD_Expansion(bbport, &exp);
+
x=exp.wb.x; // The position
+
y=exp.wb.y; // on the board
+
weight=exp.wb.tl+exp.wb.tr+exp.wb.bl+exp.wb.br; // Weight in kilograms
+
}
+
}
+
</source>
= Acknowledgments =
= Acknowledgments =