Cours:NanoPi : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
(Installation)
Ligne 51 : Ligne 51 :
 
**install
 
**install
 
**node-red-contrib-opi-gpio
 
**node-red-contrib-opi-gpio
 +
 +
==NanoHat Oled==
 +
 +
Shield avec écran et trois boutons poussoir.
 +
 +
*
  
 
=Utilisation=
 
=Utilisation=

Version du 11 mars 2020 à 16:42


Installation

image et installation minimum

apt update / apt dist-upgrade
apt install build-essential apt-utils
apt install mosquitto-clients
apt install aptitude htop
apt remove modemmanager

cross QT

As usual !

  • get Sysroot
  • get qtSource
  • compilation
  • upload

script à venir ... peut-être !

NodeRed

  • 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

NanoHat Oled

Shield avec écran et trois boutons poussoir.

Utilisation

Qt

  • Configurer QtCreator

nodeRed

  • tableau correspondance gpio <=> broche : gpio readall
  • choisir "Pi Type" : "NanoPi Neo"
  • choisir la broche dans le menu déroulant