init: Initialize the Raspberry Pi for IO

Description Usage Arguments

Description

Initialize the Raspberry Pi for IO

Usage

1
init(setup_type = "wpi", spi_channel = 0L, pin_base = 100L)

Arguments

setup_type

Which mode wiringPi should be initialized in. Either wpi, gpio, phys, or sys. See http://wiringpi.com/reference/setup/ for definitions of each.

spi_channel

If using an external ADC, which SPI channel is it running on?

pin_base

The virtual GPIO pin number which we should use for the fake pins we'll use for measuring analog values.


trestletech/RpiR documentation built on May 31, 2019, 7:47 p.m.