Skip to content

Latest commit

 

History

History
72 lines (53 loc) · 2.3 KB

GettingStarted.md

File metadata and controls

72 lines (53 loc) · 2.3 KB

#Getting started

Main classes

General

ru.iothub.jef.linux.core.RuntimePermissionsChecker.check(); 

This class automatically called by a framework but if you want to see all dependencies when you project starts - please call this method in 1st line of you program in development cycle. JEF try to validate you system configuration and propose some necessary changes like permissions/roles.

SPI interface

ru.iothub.jef.linux.spi.SpiBus

Provides access to SPI bus. All methods described in javadoc.

I2C interface

ru.iothub.jef.linux.i2c.I2CBus

Provides access to SPI bus. All methods described in javadoc. Best method to work with I2C over #select method. In this case bus will automatically lock and select your address when you start any read/write operation for device in this address

Serial Bus

ru.iothub.jef.linux.serial.SerialPort

Provides access via classical java.io.InputStream and java.io.OutputStream to serial buses aka USB/RS-232/etc. All methods described in javadoc.

One Wire

Please look to the driver implementation in

ru.iothub.jef.devices.library.maximintegrated.DS18B20

Access to this bus can be implemented over standart linux read/write operations

###GPIO Please look to the GPIO section in the examples.

Examples

Please keep in mind what examples can requre modifications to your platform. Some paths or pins can be others in different platforms or configured by different ways.

Gpio

I2C

SPI

Serial Bus

One Wire