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 <TITLE>WPAD Demos</TITLE> 7<LINK rel="stylesheet" type="text/css" href="../../CSS/revolution.css"> 8</HEAD> 9<BODY> 10 11<H1>Standard Controller (WPAD) Sample Demos</H1> 12 13<H2>Location</H2> 14<P><code>$REVOLUTION_SDK_ROOT/build/demos/wpaddemo</code></P> 15<H2>Compilation</H2> 16<P>Go to the directory <code>$REVOLUTION_SDK_ROOT/build/demos/wpaddemo</code> and type <code>make</code>. An executable file (<code>*.elf</code>) will be generated under the path <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/wpaddemo/</code>.</P> 17 18<H2>Execution</H2> 19<P>Move to the <code>$REVOLUTION_SDK_ROOT/RVL/bin/demos/wpaddemo/</code> directory and perform the following steps:</P> 20<ul> 21<li>To execute a program, run the <code>ndrun</code> script with the <code>.elf</code> file as the argument.</li> 22<li>To debug using CodeWarrior, do one of the following:</li> 23<ul> 24<li>Execute <code>$CWFOLDER/bin/IDE.exe</code> with the <code>.elf</code> file as an argument.</li> 25<li>Launch <code>$CWFOLDER/bin/IDE.exe</code>, then drag and drop the <code>.elf</code> file.</li> 26<li>If the <code>.elf</code> files are associated with <code>$CWFOLDER/bin/IDE.exe</code>, double-click the <code>.elf</code> file.</li> 27</ul> 28 29</ul> 30 31<H2>Description</H2> 32<TABLE border="1" cellpadding="3" cellspacing="0.1"> 33 <TBODY> 34 <TR> 35<TD><EM><STRONG><CODE>wpadsample</CODE></STRONG></EM></TD> 36 <TD> 37This performs basic controller operations (connection/disconnection, allowing/denying connections, Rumble, memory reads/writes, insertion/removal of external extension controllers, and so on), and displays the controller information of the Wii Remote (such as buttons, acceleration, pointer, distance from the TV, and so on). The operation of virtually changing the device type without inserting an external extension controller only functions with debug versions.<br><br> <strong>Using the Demo:</strong><br>Operate using the Nintendo GameCube Controller connected to 1P.<br><br> 38 <table> 39 <tr> 40<td width="100">+Control Pad</td><td>Moves the cursor in the operation menu at the lower right of the screen.</td> 41 </tr> 42 <tr> 43<td>A Button</td><td>Runs or stops the operation that was selected in the operation menu.</td> 44 </tr> 45 <tr> 46<td>B Button</td><td>Sets whether to allow connections for Wii Remotes that have already been registered.</td> 47 </tr> 48 <tr> 49<td>Z Button</td><td>Starts or stops simple pairing (One Time Mode).</td> 50 </tr> 51 </table> 52<br><strong>Operation Menu:</strong> 53 <table> 54 <tr> 55<td width="100">Rumble</td><td>Periodically vibrates the Wii Remote at the specified channel.</td> 56 </tr> 57 <tr> 58<td>Info</td><td>Gets information from the specified channel (indicators, remaining battery life, and so on).</td> 59 </tr> 60 <tr> 61<td>Disconnect</td><td>Disconnects the Wii Remote at the specified channel.</td> 62 </tr> 63 <tr> 64<td>ACC</td><td>Enables and disables the motion sensors for the specified channel.</td> 65 </tr> 66 <tr> 67<td>DPD</td><td>Starts or stops the pointer for the specified channel.</td> 68 </tr> 69 <tr> 70<td>DPD_FULL</td><td>Starts or stops the pointer in full mode for the specified channel.</td> 71 </tr> 72 <tr> 73<td>ExtGimmick</td><td>Operates or stops any special mechanisms in extension controllers attached to Wii Remotes at the specified channel.</td> 74 </tr> 75 <tr> 76<td>Read mem</td><td>Reads data from the memory of the Wii Remote of the specified channel.</td> 77 </tr> 78 <tr> 79<td>Write mem</td><td>Writes data to the Wii Remote memory at the specified channel.</td> 80 </tr> 81 <tr> 82<td>Dummy Ext</td><td>Fakes the insertion or removal of a device that returns <code>WPAD_DEV_FUTURE</code> to or from the specified channel.</td> 83 </tr> 84 </table> 85 86 </TD> 87 </TR> 88 <TR> 89<TD><EM><STRONG><CODE>wpad_axdemo</CODE></STRONG></EM></TD> 90 <TD> 91Outputs audio data processed by AX from the Wii Remote speaker.<br><br><strong>Using the Demo:</strong><br> 92 <table> 93 <tr> 94<td width="100">+Control Pad, A Button, B Button, 1 Button, 2 Button</td><td>Play the sounds that were assigned to each of these buttons.</td> 95 </tr> 96 <tr> 97<td>+Button</td><td>Mutes output from the speaker.</td> 98 </tr> 99 <tr> 100<td>-Button</td><td>Cancels mute.</td> 101 </tr> 102 <tr> 103<td>HOME Button</td><td>Stops the sounds that are currently being played.</td> 104 </tr> 105 </table> 106 </TD> 107 </TR> 108 <TR> 109<TD><EM><STRONG><CODE>wpad_seqdemo</CODE></STRONG></EM></TD> 110 <TD> 111Uses SEQ to play MIDI data through the Wii Remote speaker.<br><br><strong>Using the Demo:</strong><br> 112 <table> 113 <tr> 114<td width="100">A Button</td><td>Starts or stops sound playback.</td> 115 </tr> 116 </table> 117 </TD> 118 </TR> 119 <TR> 120<TD><EM><STRONG><CODE>wpad_spdemo</CODE></STRONG></EM></TD> 121 <TD> 122Plays SE using SP from the Wii Remote speaker.<br><br> <strong>Using the Demo:</strong><br> 123 <table> 124 <tr> 125<td width="100">A Button</td><td>Plays back the sound.</td> 126 </tr> 127 </table> 128 </TD> 129 </TR> 130 <TR> 131<TD><EM><STRONG><CODE>full_mode</CODE></STRONG></EM></TD> 132 <TD> 133The Wii Remote pointer is used in full mode and its sensitivity can be changed. The sensitivity can be adjusted to one of five levels.<br><br><strong>Using the Demo:</strong><br> 134 <table> 135 <tr> 136<td width="100">+Button</td><td>Increase the sensitivity of the pointer.</td> 137 </tr> 138 <tr> 139<td>- Button</td><td>Decrease the sensitivity of the pointer.</td> 140 </tr> 141 </table> 142 </TD> 143 </TR> 144 <TR> 145<TD><EM><STRONG><CODE>memory</CODE></STRONG></EM></TD> 146 <TD> 147Reads/writes data to the internal memory of the Wii Remote. This demo does not display anything to the TV screen - it only performs serial output.<br><br><strong>Using the Demo:</strong><br> 148 <table> 149 <tr> 150<td width="100">A Button</td><td>Writes data to the Wii Remote memory. Data with different values will be written for each channel. After writing, it performs a read to check if it was written correctly.</td> 151 </tr> 152 <tr> 153<td>B Button</td><td>Reads data from the Wii Remote memory. After reading, the name of the application that was written and the date and time when it was written are displayed after comparing the data that was read to the data that was used during the writes to each channel.</td> 154 </tr> 155 </table> 156 </TD> 157 </TR> 158 <TR> 159<TD><EM><STRONG><CODE>sync</CODE></STRONG></EM></TD> 160 <TD> 161Performs both normal and simple pairing.<br><br><strong>Using the Demo:</strong><br>Operate using the Nintendo GameCube Controller connected to 1P.<br> 162 <table> 163 <tr> 164<td width="100">A Button</td><td>Starts normal pairing.</td> 165 </tr> 166 <tr> 167<td>B Button</td><td>Deletes all registration information.</td> 168 </tr> 169 <tr> 170<td>X Button</td><td>Starts simple pairing.</td> 171 </tr> 172 <tr> 173<td>Y Button</td><td>Stops simple pairing.</td> 174 </tr> 175 <tr> 176<td>L Button</td><td>Starts normal pairing (high speed version).</td> 177 </tr> 178 <tr> 179<td>R Button</td><td>Starts simple pairing (high speed version).</td> 180 </tr> 181 </table> 182 </TD> 183 </TR> 184 <TR> 185<TD><EM><STRONG><CODE>dummy_checker</CODE></STRONG></EM></TD> 186 <TD> 187Fakes a change to the device type of the Wii Remote connected to 1P without actually plugging in an external extension controller. Since only a debug version of this function has been prepared, only the debug version works.<br><br> <strong>Using the Demo:</strong><br>Operate using the Nintendo GameCube Controller connected to 1P.<br> 188 <table> 189 <tr> 190<td width="100">A Button</td><td>Fakes the insertion of a device that returns <code>WPAD_DEV_FUTURE</code>.</td> 191 </tr> 192 <tr> 193<td>B Button</td><td>Fakes the removal of a device.</td> 194 </tr> 195 <tr> 196<td>X Button</td><td>Fakes the insertion of a device that returns <code>WPAD_DEV_NOT_SUPPORTED</code>.</td> 197 </tr> 198 </table> 199 </TD> 200 </TR> 201 </TBODY> 202</TABLE> 203 204<H2>See Also</H2> 205<P><A href="../toc.html" target="contents"><CODE>WPAD Functions</CODE></A></P> 206 207<H2>Revision History</H2> 208<P> 2092007/07/19 Added the description of how to operate the demos.<br>2007/07/11 Combined several demos into wpadsample.<br>2007/04/18 Added <B><I>dummy_checker</I></B>.<br>2006/09/18 Added accept.<br>2006/09/06 Added the config, full_mode, memory, shutdown, and sync demos.<br>2006/08/07 Added the demos wpad_seqdemo and wpad_spdemo.<br>2006/07/19 Added the demo wpad_axdemo.<br>2006/06/19 Overall revision reflecting support for wireless communication. 2006/03/01 Initial version. <BR> 210</P> 211 212<hr><p>CONFIDENTIAL</p></body> 213</HTML> 214