Advertisement
Guest User

Untitled

a guest
Dec 4th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. pi@raspberrypi:~$ irsend SEND_ONCE Samsung_BN59-00937A KEY_POWER
  2.  
  3. irsend: command failed: SEND_ONCE Samsung_BN59-00937A KEY_POWER
  4. irsend: hardware does not support sending
  5.  
  6. #!/usr/bin/python
  7. import RPi.GPIO as GPIO
  8. import time
  9. print "Starting blink test.."
  10. GPIO.setwarnings(True)
  11. GPIO.setmode(GPIO.BCM)
  12. GPIO.setup(17, GPIO.OUT)
  13. while True:
  14. GPIO.output(17, True)
  15. time.sleep(1)
  16. GPIO.output(17, False)
  17. time.sleep(1)
  18.  
  19. lirc_dev
  20. lirc_rpi gpio_in_pin=18 gpio_out_pin=17
  21.  
  22. dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
  23.  
  24. # /etc/lirc/hardware.conf
  25. #
  26. # Arguments which will be used when launching lircd
  27. LIRCD_ARGS="--uinput"
  28.  
  29. #Don't start lircmd even if there seems to be a good config file
  30. #START_LIRCMD=false
  31.  
  32. #Don't start irexec, even if a good config file seems to exist.
  33. #START_IREXEC=false
  34.  
  35. #Try to load appropriate kernel modules
  36. LOAD_MODULES=true
  37.  
  38.  
  39.  
  40. # Run "lircd --driver=help" for a list of supported drivers.
  41. DRIVER="default"
  42. # usually /dev/lirc0 is the correct setting for systems using udev
  43. DEVICE="/dev/lirc0"
  44. MODULES="lirc_rpi"
  45.  
  46. # Default configuration files for your hardware if any
  47. LIRCD_CONF=""
  48. LIRCMD_CONF=""
  49.  
  50. modprobe lirc_rpi gpio_in_pin=18 gpio_out_pins=17
  51.  
  52. /etc/modprobe.d/ir-remote.conf
  53.  
  54. options lirc_rpi gpio_in_pin=18 gpio_out_pin=17
  55.  
  56. pi@raspberrypi:~$ lsmod
  57. Module Size Used by
  58. bnep 10340 2
  59. hci_uart 17943 1
  60. btbcm 5929 1 hci_uart
  61. bluetooth 326105 22 bnep,btbcm,hci_uart
  62. brcmfmac 186403 0
  63. brcmutil 5661 1 brcmfmac
  64. cfg80211 427855 1 brcmfmac
  65. rfkill 16037 4 cfg80211,bluetooth
  66. snd_bcm2835 20447 1
  67. snd_pcm 75762 1 snd_bcm2835
  68. snd_timer 19288 1 snd_pcm
  69. snd 51908 5 snd_bcm2835,snd_timer,snd_pcm
  70. bcm2835_gpiomem 3040 0
  71. bcm2835_wdt 3225 0
  72. lirc_rpi 6478 0
  73. uio_pdrv_genirq 3164 0
  74. uio 8000 1 uio_pdrv_genirq
  75. lirc_dev 8310 1 lirc_rpi
  76. rc_core 16468 1 lirc_dev
  77. i2c_dev 5859 0
  78. fuse 84037 3
  79. ipv6 347594 46
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement