1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 3<html xml:lang="en-US" lang="en-US" xmlns="http://www.w3.org/1999/xhtml"> 4<head> 5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 6 <meta http-equiv="Content-Style-Type" content="text/css" /> 7 <link rel="stylesheet" href="../../css/manpage.css" type="text/css" /> 8</head> 9<body> 10 11<h1>demo1 Demo</h1> 12 13<h2>Description</h2> 14 15<div class="section"> 16<p>This sample uses multiple features of the CTR-SDK simultaneously.<BR>This demo uses the following features simultaneously.</p> 17 <ul> 18<li><CODE>snd</CODE></li> 19<li><CODE>fnd</CODE></li> 20<li><CODE>camera</CODE></li> 21<li><CODE>hid</CODE></li> 22<li><CODE>fs</CODE></li> 23<li><CODE>gx</CODE> (<CODE>TriangleSimple</CODE>)</li> 24<li>swkbd</li> 25<li>Sleep Mode</li> 26<li>HOME</li> 27 </ul> 28<p class="warning">Only this demo supports Applets at the current time. <BR>Refer to this demo if you want to see an example of Applet-compatible code.</p></div> 29 30<h2>Required Environment</h2> 31 32<div class="section"> 33<p>To start this demo as a card-based application, a CTR Card with built-in backup memory must be inserted in the system on which you start the demo. If not inserted, the error <CODE>C8804497</CODE> occurs at startup.</p> 34</div> 35 36<h2>How to Use</h2> 37 38<div class="section"> 39 <table> 40 <thead> 41 <tr> 42<th>Input</th> 43<th>Operation</th> 44 </tr> 45 </thead> 46 <tr> 47<td>+Control Pad <br /> A, B, X, Y Buttons<br /> L, R, START Buttons</td> 48<td>Detects whether buttons have been pressed. Press the X + A Buttons simultaneously to access save data.<br />Press the R + A Buttons simultaneously to start the software keyboard.<br />Press the START+ L + R Buttons simultaneously to restart the demo.(*1)</td> 49 </tr> 50 <tr> 51<td>Touch Panel</td> 52<td>Gets touch panel input coordinates and displays them.</td> 53 </tr> 54 <tr> 55<td>Accelerometer</td> 56<td>Gets accelerometer sensor X-, Y-, and Z-axis values and displays them.</td> 57 </tr> 58 <tr> 59<td>Microphone</td> 60<td>Gets input from the microphone and displays it.</td> 61 </tr> 62 <tr> 63<td>Right Outer Camera</td> 64<td>Gets input from the right outer camera and displays it.</td> 65 </tr> 66 <tr> 67<td>HOME</td> 68<td>Moves to the dev menu. Restores the screen to original status if pressed again.</td> 69 </tr> 70 <tr> 71<td>Close the system.</td> 72<td>The system will enter Sleep Mode. Opening the system returns the screen to original status.</td> 73 </tr> 74 </table> 75 <p> 76*1: The restart feature is not available when attached from the debugger (including when using the L Command in the Test Menu environment). This will reset the debugger instead. 77 </p> 78</div> 79 80<h2>Execution Procedure</h2> 81 82<div class="section"> 83<p>The following screens are displayed when you run the demo.</p> 84 <p><img src="Fig/image2010_1202_1716_0.PNG"></p> 85 86<h3>Upper screen</h3> 87 88 <ul> 89<li>gx<br /> demos - gx - DMPGL - The <CODE>TriangleSimple</CODE> demo is running. 90 </li> 91<li>Save data<br />Press the X + A Buttons simultaneously to access save data.<BR>If save data is not formatted, format the save data and get the data from the first 16 bytes in the save data to display. The following message is displayed. 92<pre> 93 Savedata is formatted 94 data:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 95</pre> 96If save data is formatted, get the data from the first 16 bytes in the save data to display. The following message is displayed. 97<pre> 98 Savedata already exists 99 data:0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15 100</pre> 101After this, read the save data using new thread and repeat writing "0,1,2.." 102 </li> 103 </ul> 104 105<h3>Lower screen</h3> 106 107 <ul> 108<li>hid<br /> Displays the input status of each button and the accelerometer. 109 </li> 110<li>camera<br /> Displays the video image input to the camera in real-time. 111 </li> 112<li>mic<br /> Displays a waveform representing the audio input to the microphone in real-time. 113 </li> 114<li>fnd<br /> Displays the time obtained from the RTC in the upper right of the lower screen. 115 </li> 116<li>swkbd<br /> Displays the string input with the software keyboard on the bottom right of the lower screen. 117 </li> 118 </ul> 119 120<p>The following log is also displayed in debug output.</p> 121 <pre class="code"> 122Demo1 Start 123X + A : Run Optional Device Demo (Ex. Card Buckup Device..) 124R + A : Run Software Keyboard Applet </pre> 125 126<h3>Other</h3> 127 128 <ul> 129<li>snd<br /> Plays a sine wave. 130 </li> 131<li>fs<br /> Loads the file named "test.txt" in the ROM archive. It also saves a file named "test.txt" to the CTR flash card. 132 </li> 133<li>fnd<br /> Uses the expanded heap region. 134 </li> 135 </ul> 136 137</div> 138 139<h2>Revision History</h2> 140 141<div class="section"> 142 <dl class="history"> 143 <dt>2011/10/18</dt> 144<dd>Added a note about restarting.<br /></dd> 145 <dt>2011/09/08</dt> 146<dd>Added information about swkbd.</dd> 147 <dt>2011/07/27</dt> 148<dd>Added key input to restart the demo.</dd> 149 <dt>2011/06/23</dt> 150<dd>Added the save data display.</dd> 151 <dt>2011/03/25</dt> 152<dd>Explained that a card with built-in backup memory is required at startup.</dd> 153 <dt>2011/02/02</dt> 154<dd>Initial version.</dd> 155 </dl> 156</div> 157 158 159<hr><p>CONFIDENTIAL</p></body> 160</html>