项目作者: johntalton

项目描述 :
i2c / spi bus abstraction layer
高级语言: JavaScript
项目地址: git://github.com/johntalton/rasbus.git
创建时间: 2017-07-23T23:46:42Z
项目社区:https://github.com/johntalton/rasbus

开源协议:MIT License

下载


RasBUS

A wrapper lib for known i2c and spi implementations.

Presenting a single API for each type that is Promise based.

Motivation

A wide range of libs exist and each have unique qualities.

Thus, an agnostic api is needed to abstract and experiment with each api.
Once unified, this api should be promise based.

This allows for testing the implementations robustness and other qualities,
but also to test higher level code against a wide set of known libs.
Allowing for high level code to guard against specific implementation bug / quirks.

byname(name)

static method will return each implementation by npm name (with or without dashes)

names(type)

static method returns all known bus implementation names (filtered by type). Usefull for command line auto complete of bus names etc.