Cours:NanoPi : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
(NodeRed)
(NodeRed)
Ligne 29 : Ligne 29 :
  
 
==NodeRed==
 
==NodeRed==
 +
pour documentation : https://discourse.nodered.org/t/trouble-with-tach-interrupt-gpio/7792
  
 +
*installation nodered
 
<source lang=bash>
 
<source lang=bash>
 
apt update
 
apt update
Ligne 38 : Ligne 40 :
 
</source>
 
</source>
  
 
https://discourse.nodered.org/t/trouble-with-tach-interrupt-gpio/7792
 
 
*install curl
 
*install nodejs & nodered
 
**pas installé "Pi-specific nodes"
 
 
*install [https://flows.nodered.org/node/node-red-contrib-opi-gpio node-red-contrib-opi-gpio]
 
*install [https://flows.nodered.org/node/node-red-contrib-opi-gpio node-red-contrib-opi-gpio]
 
**npm install node-red-contrib-opi-gpio ?? pas forcément nécessaire !!
 
**npm install node-red-contrib-opi-gpio ?? pas forcément nécessaire !!
Ligne 50 : Ligne 46 :
 
**install
 
**install
 
**node-red-contrib-opi-gpio
 
**node-red-contrib-opi-gpio
 
<source lang=bash>
 
apt update
 
apt install curl
 
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
 
npm install node-red-contrib-opi-gpio
 
</source>
 
  
 
=Utilisation=
 
=Utilisation=

Version du 23 novembre 2019 à 21:04


Installation

image et installation minimum

cross QT

As usual !

  • get Sysroot
  • get qtSource
  • compilation
  • upload

script à venir ... peut-être !

NodeRed

pour documentation : https://discourse.nodered.org/t/trouble-with-tach-interrupt-gpio/7792

  • installation nodered
apt update
apt install curl
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
//ne pas installer Pi nodes
npm install node-red-contrib-opi-gpio
  • install node-red-contrib-opi-gpio
    • npm install node-red-contrib-opi-gpio ?? pas forcément nécessaire !!
    • depuis nodeRed
    • manage Palette
    • install
    • node-red-contrib-opi-gpio

Utilisation

Qt

  • Configurer QtCreator

nodeRed

  • tableau correspondance gpio <=> broche : gpio readall
  • choisir "Pi type" : other