view espNode/display1.yaml @ 1562:c2ed44ed1e3c dependabot/pip/service/collector/twisted-19.7.0

Bump twisted from 19.2.0 to 19.7.0 in /service/collector Bumps [twisted](https://github.com/twisted/twisted) from 19.2.0 to 19.7.0. - [Release notes](https://github.com/twisted/twisted/releases) - [Changelog](https://github.com/twisted/twisted/blob/trunk/NEWS.rst) - [Commits](https://github.com/twisted/twisted/compare/twisted-19.2.0...twisted-19.7.0) Signed-off-by: dependabot[bot] <support@github.com>
author dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
date Fri, 14 Feb 2020 10:01:26 +0000
parents ed3d29eb989a
children
line wrap: on
line source

substitutions:
  location: display1
  board: d1_mini

<<: !include esp8266_nightlight.yaml
  
i2c:
  sda: D6
  scl: D5

font:
  - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
    id: font_big
    size: 24
  - file: "/usr/share/fonts/truetype/ttf-bitstream-vera/Vera.ttf"
    id: font_small
    size: 12

text_sensor:
  - platform: mqtt_subscribe
    name: "Data from topic"
    id: mysensor
    topic: display1/text
    
display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3c
    lambda: |-
      it.rectangle(0, 0, 127, 63);
      it.printf(64, 5, id(font_big), TextAlign::TOP_CENTER, id(mysensor).state.c_str());
      it.printf(64, 63-5, id(font_small), TextAlign::BOTTOM_CENTER, "left today");
      
      
spi:
  clk_pin: D0
  miso_pin: D1
  mosi_
  pin: D2
  
pn532:
  cs_pin: D3
  update_interval: 1s