Skip to content

Instantly share code, notes, and snippets.

View mekanoid's full-sized avatar

Peter Kindström mekanoid

View GitHub Profile
@mekanoid
mekanoid / Script för att ställa ljusstyrka och färgtemperatur
Last active April 4, 2021 11:17
IKEA Trådfri: Förinställda värden
arbetsrum_tak_min:
alias: Arbetsrum tak, min
sequence:
- service: light.turn_on
data:
transition: 2
brightness_pct: 50
target:
entity_id: light.taket_arbetsrun
# You need a delay to get the light to change both brightness and colortemp
@mekanoid
mekanoid / String to char
Last active December 13, 2020 14:08
Android convert
# toCharArray(buf, len);
Copies the string’s characters to the supplied buffer.
## Syntax
myString.toCharArray(buf, len)
## Parameters
myString: a variable of type String
buf: the buffer to copy the characters into (char [])
@mekanoid
mekanoid / C help
Last active January 10, 2022 18:26
Diverse
## String handling
https://www.arduino.cc/reference/en/language/variables/data-types/stringobject/
Functions
LANGUAGE charAt()
LANGUAGE compareTo()
LANGUAGE concat()
LANGUAGE c_str()
LANGUAGE endsWith()
LANGUAGE equals()
@mekanoid
mekanoid / Application
Last active December 26, 2020 14:53
MRC Comments
// ==================================================================================================
//
// MRC Application [name]
// Copyright (C) 2020 Peter Kindström
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//