<?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-Snake</id>
		<title>Joypad-Game-Snake - 版本历史</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-Snake"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joypad-Game-Snake&amp;action=history"/>
		<updated>2026-04-30T01:39:54Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Joypad-Game-Snake&amp;diff=6720&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-Snake&amp;diff=6720&amp;oldid=prev"/>
				<updated>2014-12-04T19:17:14Z</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:17的版本&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-l19&quot; &gt;第19行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第19行：&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;&amp;#160;&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 &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;lib.：https&lt;/ins&gt;://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;Joypad &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;library：https&lt;/del&gt;://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 colspan=&quot;2&quot;&gt;&amp;#160;&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;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;/table&gt;</summary>
		<author><name>Timeslider@gmx.de</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Joypad-Game-Snake&amp;diff=6496&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 of Snake.  ==Bill of Material== *Microduino Equipment  {|class=&quot;wikitable&quot; |- |Modul...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joypad-Game-Snake&amp;diff=6496&amp;oldid=prev"/>
				<updated>2014-11-25T08:08:49Z</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 of Snake.  ==Bill of Material== *Microduino Equipment  {|class=&amp;quot;wikitable&amp;quot; |- |Modul...&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 of Snake. &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  &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;
&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;
&lt;br /&gt;
Joypad library：https://github.com/wasdpkj/libraries/tree/master/_08_Microduino_Shield_Joypad&lt;br /&gt;
&lt;br /&gt;
Code：&lt;br /&gt;
[https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Joypad/Microduino_JoyPad_Game Microduino_JoyPad_Game]&lt;br /&gt;
&lt;br /&gt;
==Debuging ==&lt;br /&gt;
*Step 1: Prepare Microduino-Joypad-Game and you can refer to: [[Microduino-Joypad_Getting_start]]&lt;br /&gt;
&lt;br /&gt;
*Step 2: Stack [[Microduino-Core]] and [[Microduino-USBTTL]] on Microduino-Joypad-Game;  &lt;br /&gt;
&lt;br /&gt;
*Step 3: Download the library and code, and then update the library to compiler【[[Install Arduino IDE Microduino Program Library Support Package]]】&lt;br /&gt;
&lt;br /&gt;
*Step 4: Open program example.  &lt;br /&gt;
**Switch the code of the joystick and the button control:   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
    if(Joypad.readButton(CH_SWITCH_R))&lt;br /&gt;
  {&lt;br /&gt;
    if(Joypad.readButton(CH_SWITCH_2)==0)&lt;br /&gt;
      Joy=3;&lt;br /&gt;
    else if(Joypad.readButton(CH_SWITCH_4)==0)&lt;br /&gt;
      Joy=2;&lt;br /&gt;
    if(Joypad.readButton(CH_SWITCH_1)==0)&lt;br /&gt;
      Joy=1;&lt;br /&gt;
    else if(Joypad.readButton(CH_SWITCH_3)==0)&lt;br /&gt;
      Joy=4;&lt;br /&gt;
    else if(Joypad.readButton(CH_SWITCH_1)==1&amp;amp;&amp;amp;Joypad.readButton(CH_SWITCH_2)==1&amp;amp;&amp;amp;Joypad.readButton(CH_SWITCH_3)==1&amp;amp;&amp;amp;Joypad.readButton(CH_SWITCH_4)==1)&lt;br /&gt;
      Joy=0;&lt;br /&gt;
  }&lt;br /&gt;
  else&lt;br /&gt;
  {&lt;br /&gt;
    if(x&amp;gt;280||x1&amp;gt;280)&lt;br /&gt;
      Joy=2;//&lt;br /&gt;
    else if(x&amp;lt;-280||x1&amp;lt;-280)&lt;br /&gt;
      Joy=3;//&lt;br /&gt;
    else if(y&amp;lt;-280||y1&amp;lt;-280)&lt;br /&gt;
      Joy=1;&lt;br /&gt;
    else if(y&amp;gt;280||y1&amp;gt;280)&lt;br /&gt;
      Joy=4;&lt;br /&gt;
    else&lt;br /&gt;
      Joy=0;&lt;br /&gt;
  }   &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
Button control is the default setting by turning the right switches to the top. Users can change the way of switch.  &lt;br /&gt;
*Vibration motor control:  &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
Joypad.motor(0);//Close &lt;br /&gt;
Joypad.motor(X);//0-255 The vibration is adjustable.  &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*You can change color in “colour.h”.  &lt;br /&gt;
&lt;br /&gt;
Step 5: Compile the code and select the right board and COM port for download after successful compiling.  &lt;br /&gt;
*Experience:　&lt;br /&gt;
**The initialized picture will remind you “Please move to start”. You can move to the right or press the key of “2” to enter the game.  &lt;br /&gt;
**It will show the score after the game is over.  &lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>