summaryrefslogtreecommitdiff
path: root/tools/scilab/windows/help/en_US/DIGITAL_WRITE_SB.xml
blob: b079f4c5d1ee5b53d7aa06234cbbdb808f4d3dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="UTF-8"?>
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="DIGITAL_WRITE_SB"> 
<refnamediv>
  <refname>DIGITAL_WRITE_SB</refname>
  <refpurpose>Allows to send a logical value 0 or 1 on a given port.</refpurpose> 
</refnamediv>
<refsection>
  <title>Block Screenshot</title>
    <para>
       <inlinemediaobject>
          <imageobject>
             <imagedata fileref="../../images/gif/DIGITAL_WRITE_SB.gif" align="center" valign="middle"/>
          </imageobject>
       </inlinemediaobject>
    </para>
</refsection>
<refsection id="Contents_DIGITAL_WRITE_SB">
  <title>Contents</title>
  <itemizedlist>
    <listitem>
      <para>
        <link linkend="DIGITAL_WRITE_SB">Allows to send a logical value 0 or 1 on a given port.</link>
      </para>
    </listitem>
    <listitem>
      <itemizedlist>
        <listitem>
          <para>
            <xref linkend="Palette_DIGITAL_WRITE_SB">Palette</xref>
          </para>
        </listitem>
        <listitem>
          <para>
            <xref linkend="Description_DIGITAL_WRITE_SB">Description</xref>
          </para>
        </listitem>
        <listitem>
          <para>
            <xref linkend="Dialogbox_DIGITAL_WRITE_SB">Dialog box</xref>
          </para>
        </listitem>
        <listitem>
          <para>
            <xref linkend="Example1_DIGITAL_WRITE_SB">Example 1</xref>
          </para>
        </listitem>
        <listitem>
          <para>
            <xref linkend="Seealso_DIGITAL_WRITE_SB">See Also</xref>
          </para>
        </listitem>
      </itemizedlist>
    </listitem>
  </itemizedlist>
</refsection>  
<refsection id="Palette_DIGITAL_WRITE_SB">
  <title>Palette</title>
Arduino
</refsection>
<refsection id="Description_DIGITAL_WRITE_SB">
  <title>Description</title>
<para> The UNO card has a set of logical ports (digital) which are used for writing or reading data from a component. </para>
<para> To map a UNO, ports 2-13 are available (0 and 1 are used for serial transmission). For MEGA board, ports 2-53 are available. The port takes the low logic level (0) or logic high (1) which corresponds to the reference voltage. </para>
<para> Do note that the minimum sampling rate is 8 ms for this block. </para>
<para>      </para>
</refsection>
<refsection id="Dialogbox_DIGITAL_WRITE_SB">
  <title>Dialog box</title>
<inlinemediaobject> <imageobject> <imagedata fileref="DIGITAL_WRITE_SB_dialogbox.png" align="center"/> </imageobject> </inlinemediaobject>
<para> The digital port number is between 2 and 53, chosen based on his Arduino. </para>
<para> The card number can not be changed at this time. </para>

</refsection>
<refsection id="Example1_DIGITAL_WRITE_SB">
  <title>Example 1</title>
<para> The example below shows the use of the block in the case of an assembly consisting of a switch which is connected to a digital pin 7 and a LED which connected to digital port 10. Pressing the button causes the LED to light up. </para>
<inlinemediaobject> <imageobject> <imagedata fileref="DIGITAL_exemple.png" align="center"/> </imageobject> </inlinemediaobject>

</refsection>
<refsection id="Seealso_DIGITAL_WRITE_SB">
  <title>See Also</title>
      <para>
        <link linkend="ANALOG_READ_SB">ANALOG_READ_SB</link>
      </para>
      <para>
        <link linkend="ANALOG_WRITE_SB">ANALOG_WRITE_SB</link>
      </para>
      <para>
        <link linkend="DIGITAL_READ_SB">DIGITAL_READ_SB</link>
      </para>
</refsection>
</refentry>