<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://wiki.hydrover.it/index.php?action=history&amp;feed=atom&amp;title=H6105-D_and_H6103_basic_input%2Foutput</id>
		<title>H6105-D and H6103 basic input/output - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.hydrover.it/index.php?action=history&amp;feed=atom&amp;title=H6105-D_and_H6103_basic_input%2Foutput"/>
		<link rel="alternate" type="text/html" href="http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;action=history"/>
		<updated>2026-04-29T17:16:11Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.2</generator>

	<entry>
		<id>http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=350&amp;oldid=prev</id>
		<title>Andrea at 12:25, 6 July 2017</title>
		<link rel="alternate" type="text/html" href="http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=350&amp;oldid=prev"/>
				<updated>2017-07-06T12:25:17Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:25, 6 July 2017&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;= Description =&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;= Description =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;This programming example make use of events to monitor the switchs S1 and S2 and drive the corresponding lamps L1 and L2,&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;refer to the [[H6105-D and H6103 basic input/output wiring]] example.&lt;/ins&gt;&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;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;= Source 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;= Source Code =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrea</name></author>	</entry>

	<entry>
		<id>http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=349&amp;oldid=prev</id>
		<title>Andrea: /* Desription */</title>
		<link rel="alternate" type="text/html" href="http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=349&amp;oldid=prev"/>
				<updated>2017-07-06T12:10:34Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Desription&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 12:10, 6 July 2017&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-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;= &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Desription &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;= &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Description &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 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;= Source 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;= Source Code =&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Andrea</name></author>	</entry>

	<entry>
		<id>http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=348&amp;oldid=prev</id>
		<title>Andrea: Creata pagina con &quot;= Desription =   = Source Code =  This is the source code in PAWN language of the '''H6105-D and H6103 basic input/output''' example:  &lt;syntaxhighlight lang=&quot;pawn&quot;&gt;  /********...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.hydrover.it/index.php?title=H6105-D_and_H6103_basic_input/output&amp;diff=348&amp;oldid=prev"/>
				<updated>2017-07-06T12:09:31Z</updated>
		
		<summary type="html">&lt;p&gt;Creata pagina con &amp;quot;= Desription =   = Source Code =  This is the source code in PAWN language of the &amp;#039;&amp;#039;&amp;#039;H6105-D and H6103 basic input/output&amp;#039;&amp;#039;&amp;#039; example:  &amp;lt;syntaxhighlight lang=&amp;quot;pawn&amp;quot;&amp;gt;  /********...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Desription =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Source Code =&lt;br /&gt;
&lt;br /&gt;
This is the source code in PAWN language of the '''H6105-D and H6103 basic input/output''' example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;pawn&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/***************************************************************&lt;br /&gt;
*&lt;br /&gt;
*		Basic Input Output - example&lt;br /&gt;
*&lt;br /&gt;
*       program.p&lt;br /&gt;
*&lt;br /&gt;
***************************************************************/&lt;br /&gt;
&lt;br /&gt;
// include the library for H6105-D&lt;br /&gt;
//&lt;br /&gt;
#include &amp;lt;hydlib_cp&amp;gt;&lt;br /&gt;
&lt;br /&gt;
// define inputs&lt;br /&gt;
//&lt;br /&gt;
#define SWITCH_S1 MAKE_DIN_BOARD_CP(0)&lt;br /&gt;
#define SWITCH_S2 MAKE_DIN_BOARD_IO(0,0)&lt;br /&gt;
&lt;br /&gt;
// define outputs&lt;br /&gt;
//&lt;br /&gt;
#define LAMP_L1 MAKE_OUT_BOARD_IO(0,0)&lt;br /&gt;
#define LAMP_L2 MAKE_OUT_BOARD_IO(0,1)&lt;br /&gt;
&lt;br /&gt;
// main function&lt;br /&gt;
//&lt;br /&gt;
main()&lt;br /&gt;
{&lt;br /&gt;
	// clear display&lt;br /&gt;
	//&lt;br /&gt;
	dClear();&lt;br /&gt;
	&lt;br /&gt;
	// select system font&lt;br /&gt;
	//&lt;br /&gt;
	dFont( system5x7 );&lt;br /&gt;
&lt;br /&gt;
	// place cursor&lt;br /&gt;
	//&lt;br /&gt;
	dCursor( 0, 0 );&lt;br /&gt;
	&lt;br /&gt;
	// print on display&lt;br /&gt;
	//&lt;br /&gt;
	dPrintf( &amp;quot;Basic IO&amp;quot; );&lt;br /&gt;
	&lt;br /&gt;
	// set initial state of SWITCH_S1 and LAMP_L1&lt;br /&gt;
	//&lt;br /&gt;
	dCursor( 0, 10 );&lt;br /&gt;
	if( DinRead( SWITCH_S1 ) )&lt;br /&gt;
	{&lt;br /&gt;
		dPrintf( &amp;quot;SWITCH_S1 ON &amp;quot; );&lt;br /&gt;
		OutSet( LAMP_L1 );&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		dPrintf( &amp;quot;SWITCH_S1 OFF&amp;quot; );&lt;br /&gt;
		OutClear( LAMP_L1 );&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	// set initial state of SWITCH_S2 and LAMP_L2&lt;br /&gt;
	//&lt;br /&gt;
	dCursor( 0, 20 );&lt;br /&gt;
	if( DinRead( SWITCH_S2 ) )&lt;br /&gt;
	{&lt;br /&gt;
		dPrintf( &amp;quot;SWITCH_S2 ON &amp;quot; );&lt;br /&gt;
		OutSet( LAMP_L2 );&lt;br /&gt;
	}&lt;br /&gt;
	else&lt;br /&gt;
	{&lt;br /&gt;
		dPrintf( &amp;quot;SWITCH_S2 OFF&amp;quot; );&lt;br /&gt;
		OutClear( LAMP_L2 );&lt;br /&gt;
	}&lt;br /&gt;
	&lt;br /&gt;
	// declare an event container&lt;br /&gt;
	//&lt;br /&gt;
	new BASE_EVENT(ev);&lt;br /&gt;
&lt;br /&gt;
	// enable system events&lt;br /&gt;
	//&lt;br /&gt;
	SysEvEnable();&lt;br /&gt;
	&lt;br /&gt;
	// main loop&lt;br /&gt;
	//&lt;br /&gt;
	for( ;; )&lt;br /&gt;
	{&lt;br /&gt;
		// get new event from queue&lt;br /&gt;
		//&lt;br /&gt;
		EventGet( ev );&lt;br /&gt;
		&lt;br /&gt;
		// process some events&lt;br /&gt;
		//&lt;br /&gt;
		switch( ev.opcode )&lt;br /&gt;
		{&lt;br /&gt;
			// &amp;lt;script stop&amp;gt; command from console&lt;br /&gt;
			//&lt;br /&gt;
			case SevEmergExit:&lt;br /&gt;
			{&lt;br /&gt;
				// exit main loop&lt;br /&gt;
				//&lt;br /&gt;
				break;&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			// digital input activate&lt;br /&gt;
			//&lt;br /&gt;
			case SevDinActive:&lt;br /&gt;
			{&lt;br /&gt;
				//	SWITCH_S1&lt;br /&gt;
				//&lt;br /&gt;
				if( ev.p0 == SWITCH_S1 )&lt;br /&gt;
				{&lt;br /&gt;
					dCursor( 0, 10 );&lt;br /&gt;
					dPrintf( &amp;quot;SWITCH_S1 ON &amp;quot; );&lt;br /&gt;
					OutSet( LAMP_L1 );&lt;br /&gt;
				}&lt;br /&gt;
				&lt;br /&gt;
				//	SWITCH_S2&lt;br /&gt;
				//&lt;br /&gt;
				else if( ev.p0 == SWITCH_S2 )&lt;br /&gt;
				{&lt;br /&gt;
					dCursor( 0, 20 );&lt;br /&gt;
					dPrintf( &amp;quot;SWITCH_S2 ON &amp;quot; );&lt;br /&gt;
					OutSet( LAMP_L2 );&lt;br /&gt;
				}&lt;br /&gt;
			}&lt;br /&gt;
&lt;br /&gt;
			// digital input deactivate&lt;br /&gt;
			//&lt;br /&gt;
			case SevDinInactive:&lt;br /&gt;
			{&lt;br /&gt;
				//	SWITCH_S1&lt;br /&gt;
				//&lt;br /&gt;
				if( ev.p0 == SWITCH_S1 )&lt;br /&gt;
				{&lt;br /&gt;
					dCursor( 0, 10 );&lt;br /&gt;
					dPrintf( &amp;quot;SWITCH_S1 OFF&amp;quot; );&lt;br /&gt;
					OutClear( LAMP_L1 );&lt;br /&gt;
				}&lt;br /&gt;
				&lt;br /&gt;
				//	SWITCH_S2&lt;br /&gt;
				//&lt;br /&gt;
				else if( ev.p0 == SWITCH_S2 )&lt;br /&gt;
				{&lt;br /&gt;
					dCursor( 0, 20 );&lt;br /&gt;
					dPrintf( &amp;quot;SWITCH_S2 OFF&amp;quot; );&lt;br /&gt;
					OutClear( LAMP_L2 );&lt;br /&gt;
				}&lt;br /&gt;
			}&lt;br /&gt;
		}&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	// program end&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Andrea</name></author>	</entry>

	</feed>