mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 12:53:26 +00:00
20 lines
379 B
YAML
20 lines
379 B
YAML
esp8266:
|
|
enable_full_printf: false
|
|
|
|
logger:
|
|
level: VERBOSE
|
|
|
|
esphome:
|
|
on_boot:
|
|
- lambda: |-
|
|
int x = 100;
|
|
x = clamp(x, 50, 90);
|
|
assert(x == 90);
|
|
x = clamp_at_least(x, 95);
|
|
assert(x == 95);
|
|
x = clamp_at_most(x, 40);
|
|
assert(x == 40);
|
|
- lambda: |-
|
|
float value = 0.0f;
|
|
sscanf("3.14", "%f", &value);
|