INFRARED []

Outils pour utilisateurs

Outils du site


INFRARED

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
documentation:informatique:raspberrypi:infrared:index [2022/09/15 18:30] – [LIRC] f1slsdocumentation:informatique:raspberrypi:infrared:index [2022/09/16 18:28] (Version actuelle) – [LIRC] f1sls
Ligne 38: Ligne 38:
 === Add the lines below to the file === === Add the lines below to the file ===
 <WRAP left round important 30%> <WRAP left round important 30%>
-useless +Useless!
-</WRAP> +
 <code bash> <code bash>
 lirc_dev lirc_dev
Ligne 46: Ligne 44:
 </code> </code>
 // gpio_out_pin parameter points to the pin controlling the IR LED// // gpio_out_pin parameter points to the pin controlling the IR LED//
 +
 +</WRAP>
 +
  
 === Edit '/etc/lirc/hardware.conf', and add === === Edit '/etc/lirc/hardware.conf', and add ===
Ligne 76: Ligne 77:
  
 ===== LIRC SEND COMMANDS ===== ===== LIRC SEND COMMANDS =====
 +
 +Put the remotes you want to use in ''/etc/lirc/lircd.conf.d/''.
 +
 +==== CONF WITH RAW (PRONTO?) CODES ====
 +<code bash>
 +begin remote
 +
 +   name  MY_REMOTE
 +   flags RAW_CODES
 +   eps            30
 +   aeps          100
 +
 +   frequency    38000
 +# note ensure the modulation frequency above correctly matches your remote, default is set to 38kHz
 +# you can also try other common frequencies (36000,40000,56000) if you are unsure
 +
 +       begin raw_codes
 +
 +           name MY_TEST
 +...<<PUT THE RAW CODE HERE >>...  
 +
 +    end raw_codes
 +end remote
 +</code>
 +===== PRONTO TO LIRC CONF FILE =====
 +<code bash>
 +$ pronto2lirc
 +</code>
 +Input format: KEY_NAME:HEX_VALUE HEX_VALUE HEX_VALUE...
 +
 +===== PIGPIO =====
 +<code bash>
 +wget https://github.com/joan2937/pigpio/archive/master.zip
 +unzip master.zip
 +cd pigpio-master
 +make
 +sudo make install
 +</code>
 +
 +<WRAP left round info 60%>
 +If the Python part of the install fails it may be because you need the setup tools.
 +<code bash>
 +sudo apt install python-setuptools python3-setuptools
 +</code>
 +</WRAP>
 +
 +==== To start the pigpio daemon ====
 +<code bash>sudo pigpiod</code>
 +
 +==== To stop the pigpio daemon ====
 +<code bash>sudo killall pigpiod</code>
 +
 +==== github ====
 +<code bash>git clone https://github.com/joan2937/pigpio</code>
 +
 +==== Raspbian (raspberrypi.org image) ====
 +<code bash>
 +sudo apt-get update
 +sudo apt-get install pigpio python-pigpio python3-pigpio
 +</code>
 +
 +<WRAP left round info 60%>
 +This may not be the most recent version.  You can check the version with the command pigpiod -v.
 +</WRAP>
 +
 +===== LINKS =====
 +  * https://blog.bschwind.com/2016/05/29/sending-infrared-commands-from-a-raspberry-pi-without-lirc/
 +  * https://git.code.sf.net/p/lirc-remotes/code
 +
documentation/informatique/raspberrypi/infrared/index.1663259413.txt.gz · Dernière modification : de f1sls