Cours:Rpi3 : Différence entre versions

De troyesGEII
Aller à : navigation, rechercher
({{Rouge|Préparation carte SD}})
Ligne 12 : Ligne 12 :
 
**nécessaire ???? dtparam=audio=off
 
**nécessaire ???? dtparam=audio=off
 
*run&compile Qt apps
 
*run&compile Qt apps
*apt-get build-dep qt4-x11 libqt5gui5
+
*apt-get build-dep qt5-default libqt5gui5
 
**apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0 libpng12-dev libfontconfig1-dev
 
**apt-get install libudev-dev libinput-dev libts-dev libxcb-xinerama0-dev libxcb-xinerama0 libpng12-dev libfontconfig1-dev
 
*opencv
 
*opencv

Version du 7 novembre 2018 à 18:27

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