Learn R Programming

Rduino (version 0.1)

rduinoConnect: Rduino connect

Description

Make a serial connection to an Arduino or similar device

Usage

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

Run this code
# NOT RUN {
rduinoConnect()
rduinoClose()
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab