<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.linksprite.com/index.php?action=history&amp;feed=atom&amp;title=LinkNode_12mm_Button_Module</id>
	<title>LinkNode 12mm Button Module - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.linksprite.com/index.php?action=history&amp;feed=atom&amp;title=LinkNode_12mm_Button_Module"/>
	<link rel="alternate" type="text/html" href="https://wiki.linksprite.com/index.php?title=LinkNode_12mm_Button_Module&amp;action=history"/>
	<updated>2026-09-10T17:36:36Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.linksprite.com/index.php?title=LinkNode_12mm_Button_Module&amp;diff=11701&amp;oldid=prev</id>
		<title>Alvin: Created page with &quot;== Introduction ==  This button module hosts momentary push button switch - 12mm Square. It can serve as input for Xduino experiment. ( Press the button output low level )  ...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.linksprite.com/index.php?title=LinkNode_12mm_Button_Module&amp;diff=11701&amp;oldid=prev"/>
		<updated>2016-12-13T02:27:06Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== Introduction ==  This button module hosts momentary push button switch - 12mm Square. It can serve as input for Xduino experiment. ( Press the button output low level )  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This button module hosts momentary push button switch - 12mm Square. It can serve as input for Xduino experiment. ( Press the button output low level )&lt;br /&gt;
&lt;br /&gt;
[[File:STM32 A-8.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:STM32 A-10.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:STM32 A-3.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:STM32 A-6.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:STM32 A-7.jpg|640px]]&lt;br /&gt;
&lt;br /&gt;
== Wiring &amp;amp; Running ==&lt;br /&gt;
&lt;br /&gt;
The Button module is connected to the base shield J1:&lt;br /&gt;
&lt;br /&gt;
Button Signal --&amp;gt; LinkNode D1 G0 &lt;br /&gt;
&lt;br /&gt;
Open the Arduino IDE serial monitor ( BAUD 9600 ) , you can see the button state .&lt;br /&gt;
&lt;br /&gt;
[[File:Button 12mm.png|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Button 12mm 2.png|640px]]&lt;br /&gt;
&lt;br /&gt;
[[File:Button 12mm 3.png|640px]]&lt;br /&gt;
&lt;br /&gt;
== Simple Code ==&lt;br /&gt;
&lt;br /&gt;
 const int ButtonPin=0;&lt;br /&gt;
 int press_count = 0;&lt;br /&gt;
 &lt;br /&gt;
 void setup() {&lt;br /&gt;
   pinMode(ButtonPin, INPUT);&lt;br /&gt;
   Serial.begin(9600);        // init serial to 9600b/s&lt;br /&gt;
   Serial.println(&amp;quot;The Button is connected to the G0 (LinkNode D1)&amp;quot;);&lt;br /&gt;
 }&lt;br /&gt;
  &lt;br /&gt;
 void loop() {&lt;br /&gt;
   int sensorValue = digitalRead(ButtonPin);&lt;br /&gt;
   if(sensorValue==0)&lt;br /&gt;
   {&lt;br /&gt;
     delay(10);&lt;br /&gt;
     if(sensorValue==0)  // Check if the button is pressed&lt;br /&gt;
     {&lt;br /&gt;
        press_count++;&lt;br /&gt;
        Serial.print(&amp;quot;The button is pressed , count:&amp;quot;);&lt;br /&gt;
        Serial.println(press_count,DEC);&lt;br /&gt;
     }&lt;br /&gt;
     delay(200);&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;/div&gt;</summary>
		<author><name>Alvin</name></author>
		
	</entry>
</feed>