File tree Expand file tree Collapse file tree 5 files changed +30
-5
lines changed
Expand file tree Collapse file tree 5 files changed +30
-5
lines changed Original file line number Diff line number Diff line change @@ -10,10 +10,9 @@ interface to the LEDs on the MasterKeys keyboard series.
1010 :caption: Contents:
1111
1212 source/devices
13- source/contributing
13+ source/examples/index
1414 Documentation: libmk <source/libmk/index >
1515 Documentation: masterkeys <source/masterkeys/index >
16- source/examples/index
1716
1817.. |Travis | image :: https://api.travis-ci.com/RedFantom/masterkeys-linux.svg
1918 :alt: Travis-CI Build Status
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ AmbiLight
2+ =========
3+
4+ Fast screenshot capture program that calculates the dominant color
5+ (average of colors with high hue) visible on the screen and sets it as
6+ the only color of the keyboard. Is capable of reaching somewhere between
7+ 20 and 30 FPS on most machines.
8+
9+ .. literalinclude :: ../../../examples/ambilight/ambilight.c
10+ :language: c
11+ :linenos:
Original file line number Diff line number Diff line change 11Examples
22========
33
4+ In this section, a set of examples is provided as a simple reference on
5+ how the libraries may be used in a practical manner. The examples are
6+ extensively tested and a good way to determine whether building and
7+ installing the libraries was successful and the library is capable of
8+ controlling your device.
49
10+ .. toctree ::
11+ Photo Viewer: Python <photo>
12+ AmbiLight: C <ambilight>
Original file line number Diff line number Diff line change 1+ Photo Viewer
2+ ============
3+
4+ Simple Python program that reads a specified image file and calculates
5+ a color matrix based on this image by averaging the pixels. The image is
6+ then set on the keyboard.
7+
8+ .. literalinclude :: ../../../examples/photoviewer/viewer.py
9+ :language: python
10+ :linenos:
You can’t perform that action at this time.
0 commit comments