<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Joypad-Game-Higher_and_Higher</id>
		<title>Joypad-Game-Higher and Higher - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Joypad-Game-Higher_and_Higher"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joypad-Game-Higher_and_Higher&amp;action=history"/>
		<updated>2026-04-30T14:59:48Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Joypad-Game-Higher_and_Higher&amp;diff=6721&amp;oldid=prev</id>
		<title>Timeslider@gmx.de：github</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joypad-Game-Higher_and_Higher&amp;diff=6721&amp;oldid=prev"/>
				<updated>2014-12-04T19:37:46Z</updated>
		
		<summary type="html">&lt;p&gt;github&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2014年12月4日 (四) 19:37的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l23&quot; &gt;第23行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第23行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File: Microduino-Joypad-snake.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File: Microduino-Joypad-snake.jpg|600px|center|thumb]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Download==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Download==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TFT library：https://github.com/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;wasdpkj&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;libraries&lt;/del&gt;/tree/master/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;_01_Microduino_TFT&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;TFT library：https://github.com/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino_Tutorials&lt;/ins&gt;/tree/master/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino_Libraries/_01_Microduino_TFT_ST7735&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Joypad lib.：https://github.com/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;wasdpkj&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;libraries&lt;/del&gt;/tree/master/_08_Microduino_Shield_Joypad&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Joypad lib.：https://github.com/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino_Tutorials&lt;/ins&gt;/tree/master&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/Microduino_Libraries&lt;/ins&gt;/_08_Microduino_Shield_Joypad&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10DOF library：https://github.com/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;wasdpkj&lt;/del&gt;/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;libraries&lt;/del&gt;/tree/master/_05_Microduino_10DOF&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;10DOF library：https://github.com/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino&lt;/ins&gt;/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Microduino_Tutorials&lt;/ins&gt;/tree/master&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;/Microduino_Libraries&lt;/ins&gt;/_05_Microduino_10DOF&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code：&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Code：&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Timeslider@gmx.de</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Joypad-Game-Higher_and_Higher&amp;diff=6354&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- | ==Outline== We adopt Microduino-Joypad-Game to play the game Higher and Higher, which can be controlled by gravity perception.   ==Bill of Materi...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joypad-Game-Higher_and_Higher&amp;diff=6354&amp;oldid=prev"/>
				<updated>2014-11-21T08:40:21Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- | ==Outline== We adopt Microduino-Joypad-Game to play the game Higher and Higher, which can be controlled by gravity perception.   ==Bill of Materi...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Outline==&lt;br /&gt;
We adopt Microduino-Joypad-Game to play the game Higher and Higher, which can be controlled by gravity perception. &lt;br /&gt;
&lt;br /&gt;
==Bill of Material==&lt;br /&gt;
*Microduino Equipment &lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Core]]||1||Core board &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-USBTTL]] ||1|| Program download  &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Joypad]] ||1||&lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-10DOF/zh]] ||1|| &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File: Microduino-Joypad-snake.jpg|600px|center|thumb]]&lt;br /&gt;
==Download==&lt;br /&gt;
TFT library：https://github.com/wasdpkj/libraries/tree/master/_01_Microduino_TFT&lt;br /&gt;
Joypad lib.：https://github.com/wasdpkj/libraries/tree/master/_08_Microduino_Shield_Joypad&lt;br /&gt;
10DOF library：https://github.com/wasdpkj/libraries/tree/master/_05_Microduino_10DOF&lt;br /&gt;
Code：&lt;br /&gt;
&lt;br /&gt;
==Debugging==&lt;br /&gt;
*Step 1: Prepare Microduino-Joypad-Game and you can refer: [[Microduino-Joypad_Getting_start]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Step 2: Stack [[Microduino-Core]], [[Microduino-10DOF]] and [[Microduino-USBTTL]] on the panel of Microduino-Joypad-Game; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Step 3: Download libraries and codes needed and update the library to compiler 【[[Install Arduino IDE Microduino Program Library Support Package]]】&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Step 4: Open the program example &lt;br /&gt;
**Acquire gravity induction and by this time, we only use the data of the Y-axis. &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
 void mpu6050()&lt;br /&gt;
{&lt;br /&gt;
  accelgyro.getMotion6(&amp;amp;ax,&amp;amp;ay,&amp;amp;az,&amp;amp;gx,&amp;amp;gy,&amp;amp;gz);//Acquire the acceleration and the angular velocity of the x,y,z axis. &lt;br /&gt;
  //======Below are the quantized values of the acceleration&lt;br /&gt;
  Ax=ax/16384.00;&lt;br /&gt;
  Ay=ay/16384.00;&lt;br /&gt;
  Az=az/16384.00;&lt;br /&gt;
  //==========Below are the angles between the three axes and the horizontal coordinate system.  &lt;br /&gt;
  // Angel_accX=atan(Ax/sqrt(Az*Az+Ay*Ay))*180/3.14;&lt;br /&gt;
  Angel_accY=atan(Ay/sqrt(Ax*Ax+Az*Az))*180/3.14;&lt;br /&gt;
  //Angel_accZ=atan(Az/sqrt(Ax*Ax+Ay*Ay))*180/3.14;&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**Switch the code of the joystick and button control:  &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    int acc_readX() {&lt;br /&gt;
  if(Joypad.readButton(CH_SWITCH_L)&amp;amp;&amp;amp;Joypad.readButton(CH_SWITCH_R))&lt;br /&gt;
  {&lt;br /&gt;
    mpu6050();&lt;br /&gt;
    val= constrain(Angel_accY, -64, 64); // use Y for orientation&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
    val= -1 * constrain(Joypad.readJoystickX()/8, -64, 64); // use Y for orientation&lt;br /&gt;
  return(val);&lt;br /&gt;
  // Serial.println(val);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Gravity induction control is the default setting by turning the left and the right switches to the top. So, the opposite operation is joystick control. Users can change the setting according to personal needs. &lt;br /&gt;
&lt;br /&gt;
*The highest score is saved in EEPROM:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    if(score &amp;gt; highscore){&lt;br /&gt;
      if(score &amp;lt; 64000) {&lt;br /&gt;
        EEPROM.write(0, score);&lt;br /&gt;
        EEPROM.write(1, score&amp;gt;&amp;gt;8);&lt;br /&gt;
      }&lt;br /&gt;
      else { // bad value, zero out&lt;br /&gt;
        EEPROM.write(0,0);&lt;br /&gt;
        EEPROM.write(1,0);&lt;br /&gt;
      }        &lt;br /&gt;
      //drawString(1, s_height+3, &amp;quot;HIGHSCORE!&amp;quot;, p_color_default, 1);&lt;br /&gt;
      // tft.drawString(1, s_height+3, &amp;quot;HIGHSCORE!&amp;quot;, p_color_default, 1);&lt;br /&gt;
      drawInt(score, 120, s_height+3, p_color_default, background);&lt;br /&gt;
      highscore = score;&lt;br /&gt;
    }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Four ways of jumping: &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
switch (b_onUseID){&lt;br /&gt;
  case 0:&lt;br /&gt;
    drawString(1, s_height+3, &amp;quot;Jet pack&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    //   tft.drawString(1, s_height+3, &amp;quot;Jet pack&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    b_max = 100;&lt;br /&gt;
    b_remaining = b_max;&lt;br /&gt;
    break;&lt;br /&gt;
  case 1:&lt;br /&gt;
    drawString(1, s_height+3, &amp;quot;Frog legs&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    //    tft.drawString(1, s_height+3, &amp;quot;Frog legs&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    b_max = 100;&lt;br /&gt;
    b_remaining = b_max;&lt;br /&gt;
    break;&lt;br /&gt;
  case 2:&lt;br /&gt;
    drawString(1, s_height+3, &amp;quot;Testosterone&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    //    tft.drawString(1, s_height+3, &amp;quot;Testosterone&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    b_max = 1;&lt;br /&gt;
    b_remaining = b_max;&lt;br /&gt;
    break;&lt;br /&gt;
  case 3:&lt;br /&gt;
    drawString(1, s_height+3, &amp;quot;Low gravity&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    //    tft.drawString(1, s_height+3, &amp;quot;Low gravity&amp;quot;, b_colors[b_onUseID], 1);&lt;br /&gt;
    b_max = 255;&lt;br /&gt;
    b_remaining = b_max;&lt;br /&gt;
    break;&lt;br /&gt;
  }&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Step 5: Compile the code and select the right board and COM port for download. After that, you can have fun with Microduino. &lt;br /&gt;
&lt;br /&gt;
*Experience: &lt;br /&gt;
**Make sure the status of the two switches. If they’re all toggled upside, you should adopt gravity induction to control. Otherwise, you should use the left joystick to control. &lt;br /&gt;
**You can change different way of jumping while the ball falls on different level.&lt;br /&gt;
**That the ball falls on the ground means GAME OVER. If the score is higher than before, it will then be written in EEPROM. &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>