Requires the Arduino CLI
# Dependencies
arduino-cli lib install "u8g2"
arduino-cli lib install "WS2812FX"| // Variabler | |
| #let text-font = "Inter" | |
| #let text-size-small = 8pt | |
| #let text-size-base = 9.3pt | |
| #let text-size-section = 12pt | |
| // Typsnitt och textstorlek för etiketterna | |
| #set text(font: text-font, size: text-size-base) | |
| // A4 papper med marginaler som stämmer med Avery 99x138-R |
Requires the Arduino CLI
# Dependencies
arduino-cli lib install "u8g2"
arduino-cli lib install "WS2812FX"| { | |
| "document": { | |
| "block_prefix": "\n", | |
| "block_suffix": "\n", | |
| "color": "#E8E8D3", | |
| "margin": 2 | |
| }, | |
| "block_quote": { | |
| "indent": 1, | |
| "indent_token": "│ ", |
| /****************************************************************************** | |
| MicroViewBounce.ino | |
| This sketch uses the MicroView library. | |
| ******************************************************************************/ | |
| #include <MicroView.h> | |
| MicroView m; | |
| struct State { |
| package main | |
| import ( | |
| "cmp" | |
| "context" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "os" |
| #include <nats/nats.h> | |
| #include <string.h> | |
| const char *subj = "foo"; | |
| const char *payload = "example"; | |
| int64_t start = 0; | |
| int64_t total = 1000000; | |
| volatile int64_t count = 0; |
| /* See LICENSE file for copyright and license details. */ | |
| /* | |
| * appearance | |
| * | |
| * font: see http://freedesktop.org/software/fontconfig/fontconfig-user.html | |
| */ | |
| static char *font = "Office Code Pro D:antialias=true:style=Medium:pixelsize=20"; | |
| static int borderpx = 2; |
| [Desktop Entry] | |
| Name=st | |
| Comment=Simple Terminal | |
| Exec=/home/peter/.local/bin/st -f "OfficeCodeProD Nerd Font:antialias=true:style=Medium:pixelsize=30" | |
| Terminal=false | |
| Type=Application | |
| Icon=st | |
| Categories=Utility;TerminalEmulator; | |
| StartupWMClass=st-256color |
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "github.com/fxamacker/cbor/v2" | |
| ) | |
| const ( |
| set aaa_mode=artist | |
| set altformat_current= %F | |
| set altformat_playlist= %f%= %d | |
| set altformat_title=%f | |
| set altformat_trackwin= %f%= %d | |
| set auto_expand_albums_follow=true | |
| set auto_expand_albums_search=true | |
| set auto_expand_albums_selcur=true | |
| set auto_reshuffle=true | |
| set buffer_seconds=5 |