定制 carica/firmata 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

carica/firmata

Composer 安装命令:

composer require carica/firmata

包简介

Firmata client library

README 文档

README

Build Status License Total Downloads Latest Stable Version Latest Unstable Version

License: The MIT License

Copyright: 2013-2018 Thomas Weinert thomas@weinert.info

Carica Firmata is a PHP client library for the Firmata protocol.

It's a learning project not a product. Use it at your own risk.

![Gitter](https://badges.gitter.im/Join Chat.svg)

Basics

The repository provides a library to control an Arduino using the Firmata server sketch.

It was originally based on the Javascript implementation by Julian Gautier.

Dependencies

Carica Firmata uses Carica Io a non blocking I/O library for PHP. At least PHP 5.4 is needed. On Windows, Serproxy should be used to map serial ports to tcp.

Installation

Carica Firmata is available on Packagist. Use Composer to add it as an dependency into your own projects.

Carica\Firmata\Pin

Carica Firmata provides an OOP abstraction for the pins on an Arduino. Values are stored and only send to the board if changed. The values can be changed using different properties.

  • $pin->value is the original, internal value, the maximum value depends on the resolution of the mode.
  • $pin->digital is a boolean value and sets the pin to low/high
  • $pin->analog is a float between 0 and 1, the need value is calculated internally using the resolution of the current mode.

It is suggested to use the digital/analog properties to support different resolutions.

Carica Chip

Carica Chip uses this project and provides device objects like a led or a motor. Take a look at: https://github.com/ThomasWeinert/carica-chip

统计信息

  • 总下载量: 616
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 55
  • 点击次数: 1
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 54
  • Watchers: 3
  • Forks: 11
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-05-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固