<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[REXYGEN Community Forum / REXduino hex masks]]></title>
	<link rel="self" href="https://www.rexygen.com/oldforum/extern.php?action=feed&amp;tid=15&amp;type=atom"/>
	<link href="http://www.rexygen.com/oldforum/viewtopic.php?id=15"/>
	<updated>2015-11-10T12:22:00Z</updated>
	<generator>FluxBB</generator>
	<id>http://www.rexygen.com/oldforum/viewtopic.php?id=15</id>
	<entry>
		<title type="html"><![CDATA[Re: REXduino hex masks]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=49#p49"/>
		<content type="html"><![CDATA[<p>When the HEX mask is used, the pin modes are defined by hexadecimal numbers. E.g. for pins 0 to 7 the parameter pinmodes_00_07 can be 0x320A0800, which means:<br />pin 7: mode 3 = digital input<br />pin 6: mode 2 = digital output<br />pin 5: mode 0 = not used<br />pin 4: mode A = counter DIR<br />pin 3: mode 0 = not used<br />pin 2: mode 8 = counter pulses<br />pin 1: mode 0 = not used<br />pin 0: mode 0 = not used </p><p>Note the reversed order.</p><p>Numbering of the modes is the following:<br />0: Not connected<br />1: Not connected<br />2: Digital output<br />3: Digital input<br />4: Digital input with internal pull-up<br />5: Analog output (PWM) <br />6: Analog input<br />7: 1-Wire temperature<br />8: Counter (only pins 2 and 3)<br />9: Encoder A (only pins 2 and 3)<br />A: Counter DIR / Encoder B (only pins 4 and 5, pin pairs are 2+4 and 3+5)</p>]]></content>
		<author>
			<name><![CDATA[jaroslav_sobota]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=3</uri>
		</author>
		<updated>2015-11-10T12:22:00Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=49#p49</id>
	</entry>
	<entry>
		<title type="html"><![CDATA[REXduino hex masks]]></title>
		<link rel="alternate" href="http://www.rexygen.com/oldforum/viewtopic.php?pid=46#p46"/>
		<content type="html"><![CDATA[<p>How do I use the hex mask for Arduino MEGA2560? I do not understand the configuration parameters.</p>]]></content>
		<author>
			<name><![CDATA[md52]]></name>
			<uri>http://www.rexygen.com/oldforum/profile.php?id=7</uri>
		</author>
		<updated>2015-11-10T12:09:43Z</updated>
		<id>http://www.rexygen.com/oldforum/viewtopic.php?pid=46#p46</id>
	</entry>
</feed>
