daily pastebin goal
4%
SHARE
TWEET

pot servo esphome

a guest Feb 11th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. output:
  2.   - platform: ledc
  3.     id: servo
  4.     frequency: 50Hz
  5.     pin: GPIO12
  6.  
  7. sensor:
  8.   - platform: adc
  9.     pin: GPIO33
  10.     name: "display_pot"
  11.     update_interval: 1s
  12.     attenuation: 11db
  13.     id: pot
  14.     filters:
  15.       - delta: 0.01
  16.       - lambda: |-
  17.           return map(x, 0.0, 3.9, 3.0, 12.0);
  18.     on_value:
  19.       then:
  20.         - output.set_level:
  21.             id: servo
  22.             level: !lambda "return (x * 0.01);"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top