Cours:Rpi3 : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
m
Ligne 16 : Ligne 16 :
 
**apt-get build-dep opencv
 
**apt-get build-dep opencv
 
**apt-get install libopencv-dev libcv-dev
 
**apt-get install libopencv-dev libcv-dev
 +
 +
 +
Au besoin :
 +
cd /usr/lib/arm-linux-gnueabihf/
 +
ln -s libinput.so libinput.so.5
  
 
={{Rouge|Rétroéclairage}}=
 
={{Rouge|Rétroéclairage}}=

Version du 28 novembre 2017 à 22:13

Préparation carte SD


Au besoin :

cd /usr/lib/arm-linux-gnueabihf/
ln -s libinput.so libinput.so.5

Rétroéclairage

  • allumer
    • echo 0 > /sys/class/backlight/rpi_backlight/bl_power
    • /usr/local/sbin/powerOnScreen
  • éteindre
    • echo 1 > /sys/class/backlight/rpi_backlight/bl_power
    • /usr/local/sbin/powerOffScreen

mdp root geii

cross compilation


GPIO

Entrée

  • apt-get install inotify-tools
  • export gpio
  • change edge mode
    • none
    • both
  • inotifywait value
  • http://doc.qt.io/qt-5/qfilesystemwatcher.html
  • Latence : temps entre modification de l'entrée et modification d'une sortie
  • Latence maximum <400µs typiquement 230µs(QFileSystemWatcher avec ondemand ou powersave governor)
    • frequence max avec détection des 2 fronts environ 1.7kHz
  • /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
  • Latence maximum <250µs typiquement 120µs (QFileSystemWatcher avec ondemand performance)
    • frequence max avec détection des 2 fronts environ 2.7kHz