Mac OS X ambilight
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Thomas Buck 4fe3536f03
Added screenshot
4 gadus atpakaļ
DisplayBacklight Prepared for publishing 4 gadus atpakaļ
DisplayBacklight.xcodeproj Remove XCode Userstate from Repo 4 gadus atpakaļ
.gitignore Prepared for publishing 4 gadus atpakaļ
COPYING Prepared for publishing 4 gadus atpakaļ
DisplayBacklight.ino Renamed Arduino Sketch 4 gadus atpakaļ Added screenshot 4 gadus atpakaļ Prepared for publishing 4 gadus atpakaļ First (working) commit 4 gadus atpakaļ


DisplayBacklight is an Ambilight-clone made with an Arduino controlled by a macOS machine.

DisplayBacklight - macOS Arduino Ambilight


The software currently only supports driving RGB-LEDs with the colors from the edge of a screen, so you have to place an RGB LED strip on the outer edges of your computer monitors. Multiple screens are supported using a single LED strip for all of them.

You need an LED strip with individually addressable LEDs like the popular WS2812 RGB LED strips. The data line is connected to pin 2 of the Arduino. The Adafruit Neo-Pixel library is used to control the LEDs.

Ambilight Photo Ambilight Photo


The color data is transmitted using the serial port and the USB-UART converter built into most Arduinos. Communication happens at 115200bps, the LED count is hardcoded in both firmware and host software. First, a magic string, also hardcoded, is sent, followed by 3 bytes containing Red, Green and Blue, for each LED. When the last byte has been received the whole strip is refreshed at once.


The macOS host software is opening the connection to the serial port, grabbing a screenshot, processing the edges to calculate each LED color and finally sending it to the device.

Ambilight Screenshot


DisplayBacklight itself is made by Thomas Buck and released under a BSD 2-Clause License. See the accompanying COPYING file.