<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<c74object name="cr.boardin">

    <!-- The digest is a super-short description used for things such as autocompletion.-->
	<digest>
		Arduino UNO Board Inputs (Reader)
	</digest>
	
    <!-- The description is a more detailed overview of the object, abstraction, or other file.-->
	<description>
		Takes Arduino UNO pins input ... Add further description...
	</description>
	
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">Creative Robotics Lab</metadata>
		<metadata name="tag">CR</metadata>
		<metadata name="tag">Max</metadata>
		<metadata name="tag">Arduino</metadata>
		<metadata name="tag">Robotics</metadata>
        <metadata name="tag">Firmata</metadata>
	</metadatalist>
	
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="message">
            <digest>Messages: Bang, Pins, Ports, Config, Open, Close, Test</digest>
		</inlet>
	</inletlist>

	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="signal/integer">
            <digest>Input data from the board pin, as specified in the object parameters</digest>
            <description>Add further description of the outlets</description>
		</outlet>
    </outletlist>
	
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="port" optional="0" type="char">
			<digest>Choose port to connec to board.</digest>
		</objarg>
        <objarg name="baud" optional="1" type="long" default="57680">
            <digest>Set baud rate, default is 57,680.</digest>
        </objarg>
	</objarglist>
    
    <!--ATTRIBUTES-->
    <attributelist>
        <attribute name='digital' get='1' set='1' type='list' size='1' >
            <digest>List digital input pin numbers.</digest>
            <description />
        </attribute>
        <attribute name='analog' get='1' set='1' type='list' size='1' >
            <digest>List analog input pin numbers.</digest>
            <description />
        </attribute>
    </attributelist>
	
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
            <arglist />
			<digest> Bang Message to retrieve data values from board </digest>
            <description />
		</method>
		<method name="ports">
			<arglist />
			<digest> List available ports in the console window </digest>
			<description />
        </method>
        <method name="test">
            <arglist />
            <digest> Test the connection to board. Print status report to console and blink the onboard LED 3 times </digest>
            <description />
        </method>
        <method name="open">
            <arglist />
            <digest> Open a connection to the board </digest>
            <description />
        </method>
        <method name="close">
            <arglist />
            <digest> Close the connection to the board </digest>
            <description />
        </method>
        <method name="pins">
            <arglist />
            <digest> List current pin modes in the console window </digest>
            <description />
        </method>
        <method name="config">
            <arglist />
            <digest> List all possible modes per pin in the console window </digest>
            <description />
        </method>
	</methodlist>
	
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="cr.boardout"/>
	</seealsolist>
	
</c74object>
