Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
documentation:informatique:raspberrypi:infrared:index [2022/09/15 18:29] – [LIRC] f1sls | documentation:informatique:raspberrypi:infrared:index [2022/09/16 18:28] (Version actuelle) – [LIRC] f1sls | ||
---|---|---|---|
Ligne 37: | Ligne 37: | ||
=== Add the lines below to the file === | === Add the lines below to the file === | ||
- | < | + | < |
- | useless | + | Useless! |
- | </ | + | |
<code bash> | <code bash> | ||
lirc_dev | lirc_dev | ||
Ligne 46: | Ligne 44: | ||
</ | </ | ||
// gpio_out_pin parameter points to the pin controlling the IR LED// | // gpio_out_pin parameter points to the pin controlling the IR LED// | ||
+ | |||
+ | </ | ||
+ | |||
=== Edit '/ | === Edit '/ | ||
Ligne 76: | Ligne 77: | ||
===== LIRC SEND COMMANDS ===== | ===== LIRC SEND COMMANDS ===== | ||
+ | |||
+ | Put the remotes you want to use in ''/ | ||
+ | |||
+ | ==== CONF WITH RAW (PRONTO?) CODES ==== | ||
+ | <code bash> | ||
+ | begin remote | ||
+ | |||
+ | | ||
+ | flags RAW_CODES | ||
+ | | ||
+ | | ||
+ | |||
+ | | ||
+ | # note ensure the modulation frequency above correctly matches your remote, default is set to 38kHz | ||
+ | # you can also try other common frequencies (36000, | ||
+ | |||
+ | begin raw_codes | ||
+ | |||
+ | name MY_TEST | ||
+ | ...<< | ||
+ | |||
+ | end raw_codes | ||
+ | end remote | ||
+ | </ | ||
+ | ===== PRONTO TO LIRC CONF FILE ===== | ||
+ | <code bash> | ||
+ | $ pronto2lirc | ||
+ | </ | ||
+ | Input format: KEY_NAME: | ||
+ | |||
+ | ===== PIGPIO ===== | ||
+ | <code bash> | ||
+ | wget https:// | ||
+ | unzip master.zip | ||
+ | cd pigpio-master | ||
+ | make | ||
+ | sudo make install | ||
+ | </ | ||
+ | |||
+ | <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 | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== To start the pigpio daemon ==== | ||
+ | <code bash> | ||
+ | |||
+ | ==== To stop the pigpio daemon ==== | ||
+ | <code bash> | ||
+ | |||
+ | ==== github ==== | ||
+ | <code bash>git clone https:// | ||
+ | |||
+ | ==== Raspbian (raspberrypi.org image) ==== | ||
+ | <code bash> | ||
+ | sudo apt-get update | ||
+ | sudo apt-get install pigpio python-pigpio python3-pigpio | ||
+ | </ | ||
+ | |||
+ | <WRAP left round info 60%> | ||
+ | This may not be the most recent version. | ||
+ | </ | ||
+ | |||
+ | ===== LINKS ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ |