ioteducation/gpio 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ioteducation/gpio

Composer 安装命令:

composer require ioteducation/gpio

包简介

An extension that works with a simple api to control GPIO's of Raspberry PI 3, using Wiring Pi library

README 文档

README

Biblioteca PHP para controle das portas GPIO do Raspberry 3

Requisitos

  • PHP >= 7.2.*

Ambiente

Testado no raspbian 9 com PHP 7.2

Instalação

Instale diretamente no terminal de comando com composer:

composer require ioteducation/gpio

ou adicione em seu arquivo composer.json:

"require": {
    "ioteducation/gpio": "^0.1.0"
},

e no terminal:

composer update

Exemplos

Atuadores

use I9IoT\GPIO\Device\Device;
use I9IoT\GPIO\Pin\PinMode;
use I9IoT\GPIO\Pin\PinState;

$device = new Device();
$device->newPin(26, PinMode::OUTPUT);

// Equivalente ao digitalWrite(26,HIGH) do arduino
$device->actions->digitalWrite(26, PinState::HIGH);

// Equivalente ao digitalWrite(26,LOW) do arduino
$device->actions->digitalWrite(26, PinState::LOW);

// Equivalente ao digitalRead(26) do arduino
echo $device->actions->digitalRead(26);

Em breve

  • Sensores
  • Interrupções
  • PWM
  • Funções alternativas para newPin:
    • newOutput
    • newInput
    • newPWM
    • newInterrupt
    • Entre outras

Desenvolvimento

Esse projeto é uma parceria da IoT Education com a I9 IoT.

IoT Education

  • Cidade: Indaiatuba - SP
  • Ramo: Consultoria e Treinamento IoT

I9 IoT (Startup)

  • Cidade: Indaiatuba - SP
  • Ramo: Consultoria e Desenvolvimento de sistemas IoT

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2019-03-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固