diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-09-19 19:43:11 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2021-09-19 19:43:11 +0200 |
commit | 7bdce37fd3f18e2712e18c4e2c64cac69af0aca1 (patch) | |
tree | b7ad3f1cca92e2dfd2664ae9e65652bd03ff58b2 /docs/_book/Usage/Configuration.html | |
parent | e6880cd8ccf82d993f222cb14b4860581654acb8 (diff) | |
download | Luxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.tar.gz Luxcena-Neo-7bdce37fd3f18e2712e18c4e2c64cac69af0aca1.zip |
:boom: Introduce new UI based on svelte, and rewrite a lot of the node app and the NeoRuntime
Diffstat (limited to 'docs/_book/Usage/Configuration.html')
-rw-r--r-- | docs/_book/Usage/Configuration.html | 508 |
1 files changed, 0 insertions, 508 deletions
diff --git a/docs/_book/Usage/Configuration.html b/docs/_book/Usage/Configuration.html deleted file mode 100644 index 28abb96..0000000 --- a/docs/_book/Usage/Configuration.html +++ /dev/null @@ -1,508 +0,0 @@ - -<!DOCTYPE HTML> -<html lang="" > - <head> - <meta charset="UTF-8"> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type"> - <title>Configuration ยท Luxcena-Neo wiki</title> - <meta http-equiv="X-UA-Compatible" content="IE=edge" /> - <meta name="description" content=""> - <meta name="generator" content="GitBook 3.2.3"> - <meta name="author" content="JakobST1n"> - - - - <link rel="stylesheet" href="../gitbook/style.css"> - - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-code/plugin.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-pretty-term/terminal.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-hints/plugin-hints.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-comment/plugin.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-emphasize/plugin.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-api/api.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css"> - - - - <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css"> - - - - - - - - - - - - - - - - - - - - - - - - <meta name="HandheldFriendly" content="true"/> - <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> - <meta name="apple-mobile-web-app-capable" content="yes"> - <meta name="apple-mobile-web-app-status-bar-style" content="black"> - <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png"> - <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon"> - - - <link rel="next" href="CLI.html" /> - - - <link rel="prev" href="Install.html" /> - - - </head> - <body> - -<div class="book"> - <div class="book-summary"> - - -<div id="book-search-input" role="search"> - <input type="text" placeholder="Type to search" /> -</div> - - - <nav role="navigation"> - - - -<ul class="summary"> - - - - - - - - - - <li class="chapter " data-level="1.1" data-path="../"> - - <a href="../"> - - - Introduction - - </a> - - - - </li> - - <li class="chapter " data-level="1.2" data-path="./"> - - <a href="./"> - - - Usage - - </a> - - - - <ul class="articles"> - - - <li class="chapter " data-level="1.2.1" data-path="Install.html"> - - <a href="Install.html"> - - - Install - - </a> - - - - </li> - - <li class="chapter active" data-level="1.2.2" data-path="Configuration.html"> - - <a href="Configuration.html"> - - - Configuration - - </a> - - - - </li> - - <li class="chapter " data-level="1.2.3" data-path="CLI.html"> - - <a href="CLI.html"> - - - CLI - - </a> - - - - </li> - - - </ul> - - </li> - - <li class="chapter " data-level="1.3" > - - <span> - - - Scripting - - </span> - - - - <ul class="articles"> - - - <li class="chapter " data-level="1.3.1" data-path="../Scripting/SupportLib/"> - - <a href="../Scripting/SupportLib/"> - - - Support Library - - </a> - - - - </li> - - <li class="chapter " data-level="1.3.2" > - - <span> - - - Examples - - </span> - - - - <ul class="articles"> - - - <li class="chapter " data-level="1.3.2.1" data-path="../Scripting/Examples/strandtest.html"> - - <a href="../Scripting/Examples/strandtest.html"> - - - Strandtest - - </a> - - - - </li> - - - </ul> - - </li> - - - </ul> - - </li> - - <li class="chapter " data-level="1.4" > - - <span> - - - Contributing - - </span> - - - - <ul class="articles"> - - - <li class="chapter " data-level="1.4.1" > - - <span> - - - Modules - - </span> - - - - <ul class="articles"> - - - <li class="chapter " data-level="1.4.1.1" data-path="../Contributing/Modules/CompileAndRun.html"> - - <a href="../Contributing/Modules/CompileAndRun.html"> - - - CompileAndRun - - </a> - - - - </li> - - - </ul> - - </li> - - - </ul> - - </li> - - - - - <li class="divider"></li> - - <li> - <a href="https://www.gitbook.com" target="blank" class="gitbook-link"> - Published with GitBook - </a> - </li> -</ul> - - - </nav> - - - </div> - - <div class="book-body"> - - <div class="body-inner"> - - - -<div class="book-header" role="navigation"> - - - <!-- Title --> - <h1> - <i class="fa fa-circle-o-notch fa-spin"></i> - <a href=".." >Configuration</a> - </h1> -</div> - - - - - <div class="page-wrapper" tabindex="-1" role="main"> - <div class="page-inner"> - -<div id="book-search-results"> - <div class="search-noresults"> - - <section class="normal markdown-section"> - - <h1 id="configuration">Configuration</h1> -<p>How to setup luxcena-neo to work with your setup</p> -<hr> -<pre><code class="lang-bash">$ sudo lux-neo conf -</code></pre> -<p>When running the command above, a config file should appear in the editor 'nano'.</p> -<pre><code class="lang-json">{ - <span class="hljs-string">"led_count"</span>: <span class="hljs-number">53</span>, - <span class="hljs-string">"segments"</span>: [], - <span class="hljs-string">"matrix"</span>: [], - <span class="hljs-string">"segmentConfiguration"</span>: <span class="hljs-string">"snake"</span>, - <span class="hljs-string">"led_pin"</span>: <span class="hljs-number">18</span>, - <span class="hljs-string">"led_freq_hz"</span>: <span class="hljs-number">800000</span>, - <span class="hljs-string">"led_dma"</span>: <span class="hljs-number">10</span>, - <span class="hljs-string">"led_invert"</span>: <span class="hljs-literal">false</span>, - <span class="hljs-string">"led_channel"</span>: <span class="hljs-number">0</span> -} -</code></pre> -<p><div class="alert alert-success hints-alert"><div class="hints-icon"><i class="fa fa-mortar-board"></i></div><div class="hints-container"><p>If you rather want to use vim or another editor, the file is at <code>/home/lux-neo/userdata/config/strip.json</code></p> -</div></div></p> -<h2 id="ledcount">led_count</h2> -<p>This is the number of LED's you want to control.</p> -<h2 id="segments">segments</h2> -<p>This is a simple list, here you should add the lenghts of all your segments. Please enter the "real" length, and don't start counting from 0. If you just want one segment, you should just have one element in the list, which is the number of led's you are controlling.</p> -<p>When summing this list, it should check out with the "led-count"-option.</p> -<h2 id="matrix">matrix</h2> -<p>This is a two dimensonal array, used to arrange the segments in a matrix of your likings. Here you enter the segment-number to represent them. In the example above, all the segments are in one line. If you want to have them in a square, it could look like this:</p> -<pre><code class="lang-json"><span class="hljs-string">"segments"</span>: [<span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>, <span class="hljs-number">10</span>], -<span class="hljs-string">"matrix"</span>: [ - [[<span class="hljs-number">0</span>, <span class="hljs-literal">false</span>], [<span class="hljs-number">1</span>, <span class="hljs-literal">true</span>], [<span class="hljs-number">2</span>, <span class="hljs-literal">false</span>]], - [[<span class="hljs-number">3</span>, <span class="hljs-literal">true</span>], [<span class="hljs-number">4</span>, <span class="hljs-literal">false</span>], [<span class="hljs-number">5</span>, <span class="hljs-literal">true</span>]], - [[<span class="hljs-number">6</span>, <span class="hljs-literal">false</span>], [<span class="hljs-number">7</span>, <span class="hljs-literal">true</span>], [<span class="hljs-number">8</span>, <span class="hljs-literal">false</span>]] -] -</code></pre> -<p>Each entry looks is a list, with two parameters, <code>[<segment_number>, <invert>]</code> -<div class="alert alert-danger hints-alert"><div class="hints-icon"><i class="fa fa-exclamation-circle"></i></div><div class="hints-container"><p>If you don't have a reference to all the segments or something, the matrix setup will fail. And fall back to 'segmentsconfiguration'</p> -</div></div></p> -<h2 id="segmentconfiguration">segmentconfiguration</h2> -<p>If the matrix-option is empty or badly setup. The matrix will be set up using one of these defaults:</p> -<pre><code>"snake": -"line": -"random": -</code></pre><h2 id="ledpin">led_pin</h2> -<p>If using the luxcena-shield, you shouldn't have to worry about this option. But set it to the GPIO-port connected to your pixel's din-port.</p> -<h2 id="leddma">led_dma</h2> -<p><div class="alert alert-danger hints-alert"><div class="hints-icon"><i class="fa fa-exclamation-circle"></i></div><div class="hints-container"><p>If using a newer RPi (3 or newer), leave this as 10! Or your file-system might crash.</p> -</div></div> -This is the dma-channel used to generate the data-stream. If you for some reason need channel 10 for something else, you can change it. But i strongly recommend leaving it to 10!</p> -<h2 id="ledinvert">led_invert</h2> -<p>This should not be touched, unless you are using a inverting level converter.</p> -<h2 id="ledchannel">led_channel</h2> -<p>Leave this as default unless you know what you are doing.</p> -<hr> -<p>Now you might want to take a look at the <a href="CLI.html">command line interface</a>.</p> - - - </section> - - </div> - <div class="search-results"> - <div class="has-results"> - - <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1> - <ul class="search-results-list"></ul> - - </div> - <div class="no-results"> - - <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1> - - </div> - </div> -</div> - - </div> - </div> - - </div> - - - - <a href="Install.html" class="navigation navigation-prev " aria-label="Previous page: Install"> - <i class="fa fa-angle-left"></i> - </a> - - - <a href="CLI.html" class="navigation navigation-next " aria-label="Next page: CLI"> - <i class="fa fa-angle-right"></i> - </a> - - - - </div> - - <script> - var gitbook = gitbook || []; - gitbook.push(function() { - gitbook.page.hasChanged({"page":{"title":"Configuration","level":"1.2.2","depth":2,"next":{"title":"CLI","level":"1.2.3","depth":2,"path":"Usage/CLI.md","ref":"Usage/CLI.md","articles":[]},"previous":{"title":"Install","level":"1.2.1","depth":2,"path":"Usage/Install.md","ref":"Usage/Install.md","articles":[]},"dir":"ltr"},"config":{"plugins":["code","pretty-term","hints","comment","github","emphasize","api","offline","livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"emphasize":{},"offline":{},"pretty-term":{},"github":{"url":"https://github.com/jakobst1n/luxcena-neo"},"livereload":{},"search":{},"hints":{"danger":"fa fa-exclamation-circle","info":"fa fa-info-circle","tip":"fa fa-mortar-board","working":"fa fa-wrench"},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"code":{"copyButtons":true},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"api":{},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false},"comment":{"highlightCommented":true}},"theme":"default","author":"JakobST1n","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Luxcena-Neo wiki","gitbook":"*"},"file":{"path":"Usage/Configuration.md","mtime":"2018-11-30T10:47:07.758Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-12-05T23:08:01.913Z"},"basePath":"..","book":{"language":""}}); - }); - </script> -</div> - - - <script src="../gitbook/gitbook.js"></script> - <script src="../gitbook/theme.js"></script> - - - <script src="../gitbook/gitbook-plugin-code/plugin.js"></script> - - - - <script src="../gitbook/gitbook-plugin-pretty-term/terminal.js"></script> - - - - <script src="../gitbook/gitbook-plugin-comment/plugin.js"></script> - - - - <script src="../gitbook/gitbook-plugin-github/plugin.js"></script> - - - - <script src="../gitbook/gitbook-plugin-api/api.js"></script> - - - - <script src="../gitbook/gitbook-plugin-offline/service-worker-registration.js"></script> - - - - <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script> - - - - <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script> - - - - <script src="../gitbook/gitbook-plugin-search/search.js"></script> - - - - <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script> - - - - <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script> - - - - <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script> - - - - <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script> - - - - </body> -</html> - |