Updated Mouse and Serial docs

This commit is contained in:
Jeff Parsons 2017-09-12 08:33:34 -07:00 committed by Jeff Parsons
commit 1bc36c1c07
3 changed files with 61 additions and 24 deletions

View file

@ -5,20 +5,23 @@ permalink: /docs/pcx86/serial/
---
PCx86 SerialPort Component
---
--------------------------
Format
---
------
```xml
<serial>...</serial>
```
Purpose
---
-------
Creates an instance of the SerialPort component, which simulates an IBM PC Asynchronous Adapter (RS-232).
Attributes
---
----------
* *adapter* (required)
A number (1 or 2) indicating whether this is a "Primary" or "Secondary" adapter.
@ -30,23 +33,26 @@ Attributes
For example, if you've defined a Control Panel with a &lt;textarea&gt; control bound to "print", specifying a
binding of "print" for the Serial Port component will bind its port to the same control.
Also supports the attributes of *[Component](/docs/pcx86/component/)*.
* Also supports the attributes of *[Component](/docs/pcx86/component/)*.
Bindings
---
--------
* *buffer*
For use with a control of type "textarea", to send/receive data to/from the port. If you would rather
bind the port to an existing control, then use *binding* attribute instead (see above).
Example
---
-------
```xml
<serial id="com1" adapter="1" binding="print"/>
```
Output
---
------
```html
<div id="..." class="pc-serial pc-component">
<div class="pc-container">