User Tools

Site Tools


hardware:ambilight

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:ambilight [2024/02/19 17:56] excylehardware:ambilight [2024/02/22 20:35] (current) – [Software] excyle
Line 25: Line 25:
 ter referentie hier ook de code zelf ter referentie hier ook de code zelf
  
-LEDstream.pde +<code c LEDstream.pde>
- +
-<code c>+
 // Arduino "bridge" code between host computer and WS2801-based digital // Arduino "bridge" code between host computer and WS2801-based digital
 // RGB LED pixels (e.g. Adafruit product ID #322).  Intended for use // RGB LED pixels (e.g. Adafruit product ID #322).  Intended for use
Line 268: Line 266:
  
 packages uit de standaard ubuntu repo installeren packages uit de standaard ubuntu repo installeren
- 
-Ubuntu 10.04 
- 
-<code bash> 
-aptitude install libx11-dev libxrender-dev libxext-dev portaudio19-dev libavcodec-dev libavformat-dev libswscale-dev libavdevice-dev 
- 
-</code> 
- 
-Ubuntu 12.04 
  
 <code bash> <code bash>
Line 317: Line 306:
 zet hier de volgende code in : zet hier de volgende code in :
  
-boblight.conf +<code xorg_conf boblight.conf>
- +
-<code xorg_conf>+
 #config file for adalight from http://www.ladyada.net/make/adalight/ #config file for adalight from http://www.ladyada.net/make/adalight/
  
Line 765: Line 752:
  
 <code bash> <code bash>
-mcedit /etc/init.d/boblight+mcedit /usr/lib/systemd/system/boblight.service
  
 </code> </code>
Line 771: Line 758:
 zet hier het volgende in zet hier het volgende in
  
-boblight +<code xorg_conf boblight.service
- +[Unit] 
-<code xorg_conf> +Description=Boblight Ambient Lighting Daemon 
-#!/bin/sh -e +DefaultDependencies=no 
-### BEGIN INIT INFO +After=network.target
-# Provides:          boblight-daemon +
-# Required-Start:    $local_fs $remote_fs $network +
-# Required-Stop:     $local_fs $remote_fs $network +
-# Default-Start:     2 3 4 5 +
-# Default-Stop:      0 1 6 +
-# Short-Description: Start or stop the transmission-daemon. +
-### END INIT INFO +
- +
-. /lib/lsb/init-functions +
- +
-start_daemon() +
-+
-    /usr/bin/boblightd -f> /var/log/boblightd 2>&+
-+
- +
-stop_daemon() +
-+
-    killall boblightd +
-}+
  
-case "$1" in +[Service] 
-    start) +ExecStart=/usr/bin/boblightd > /var/log/boblightd 2>&1 
-        log_daemon_msg "Starting boblight daemon" +Restart=on-abort
-        start_daemon +
-        log_end_msg 0 +
-        ;; +
-    stop) +
-        log_daemon_msg "Stopping boblight daemon" +
-        stop_daemon +
-        log_end_msg 0 +
-        ;; +
-    restart|force-reload) +
-        log_daemon_msg "Restarting boblight daemon" +
-        stop_daemon +
-        start_daemon +
-        log_end_msg 0 +
-        ;; +
-    *) +
-        echo "Usage: /etc/init.d/$NAME {start|stop|reload|force-reload|restart}" +
-        exit +
-        ;; +
-esac+
  
-exit 0+[Install] 
 +WantedBy=multi-user.target
  
 </code> </code>
Line 826: Line 776:
  
 <code bash> <code bash>
-chmod +x /etc/init.d/boblight +systemctl daemon-reload 
-update-rc.d boblight defaults+systemctl enable boblight
  
 </code> </code>
hardware/ambilight.1708361808.txt.gz · Last modified: by excyle

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki