rduinoConnect: Rduino connect

Description Usage Arguments Examples

View source: R/functions.R

Description

Make a serial connection to an Arduino or similar device

Usage

1
2
rduinoConnect(baud = 38400, mode = "n,8,1", upload = TRUE,
  arduino = NULL)

Arguments

baud

baud rate

mode

communication mode

upload

if TRUE, upload the ino file to the device

arduino

command used to run arduino as a shell command including the path

This function does two things - uploads a .ino file to an Arduino, and acts as a wrapper for the serialConnection function of the serial package. The options for the communication mode are available via the helpfile for the serialConnection command.

Examples

1
2
3
4
5
## Not run: 
rduinoConnect()
rduinoClose()

## End(Not run)

Rduino documentation built on May 1, 2019, 7:32 p.m.