View Script för att ställa ljusstyrka och färgtemperatur
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
View String to char
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 []) |
View C help
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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() |
View Application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ================================================================================================== | |
// | |
// 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. | |
// |