mcopy/lib/arduino
mmcwilliams 48e8415ee4 Rename all keys to full "camera_" vs "cam_" and "projector_" vs "proj_" for consistency across the app.
Successfully separate and refactor gui.grid object to gui.
2019-03-21 21:02:28 -04:00
..
Readme.md Port shared modules to typescript. Migrate shared modules first, then look at individual needs of sub-projects. 2019-03-04 22:09:12 -05:00
index.js Rename all keys to full "camera_" vs "cam_" and "projector_" vs "proj_" for consistency across the app. 2019-03-21 21:02:28 -04:00
index.js.map Rename all keys to full "camera_" vs "cam_" and "projector_" vs "proj_" for consistency across the app. 2019-03-21 21:02:28 -04:00
package.json Port shared modules to typescript. Migrate shared modules first, then look at individual needs of sub-projects. 2019-03-04 22:09:12 -05:00

Readme.md

Functions

delay(ms)Promise

Pause the process for X milliseconds in async/await functions

send(device, cmd)Promise

Send a command to an Arduino using async/await

write(device, str)Promise

Send a string to an Arduino using async/await

open(device)Promise

Connect to an Arduino using async/await

close(device)Promise

Close a connection to an Arduino using async/await

delay(ms) ⇒ Promise

Pause the process for X milliseconds in async/await functions

Kind: global function
Returns: Promise - Resolves after wait

Param Type Description
ms integer milliseconds

send(device, cmd) ⇒ Promise

Send a command to an Arduino using async/await

Kind: global function
Returns: Promise - Resolves after sending

Param Type Description
device string Arduino identifier
cmd string Single character command to send

write(device, str) ⇒ Promise

Send a string to an Arduino using async/await

Kind: global function
Returns: Promise - Resolves after sending

Param Type Description
device string Arduino identifier
str string String to send

open(device) ⇒ Promise

Connect to an Arduino using async/await

Kind: global function
Returns: Promise - Resolves after opening

Param Type Description
device string Arduino identifier

close(device) ⇒ Promise

Close a connection to an Arduino using async/await

Kind: global function
Returns: Promise - Resolves after closing

Param Type Description
device string Arduino identifier