Giter Club home page Giter Club logo

Comments (2)

OttoWinter avatar OttoWinter commented on May 21, 2024

esphomeyaml automatically translates the D4, D0, D<x> pins to the chipset GPIO numbering from the platform name. For example, the D4 pin on the Wemos D4 mini is internally known as GPIO2.

1c1f9fe6-dd1c-4bb2-a3c1-1919953728e5
(the dark grey values are the GPIO pin numbers, and the D<x> numbers are the aliases by Wemos D1 mini)

It uses these lists by the awesome arduino espressif8266 projects to do so. Unfortunately, it seems like I had a small typo while copying the pin aliases from there into esphomeyaml: The pin D4 maps to the internal GPIO2 pin, not the GPIO0 pin.

Thanks for reporting this πŸ‘Copying those lists was quite a mess and I apparently had a typo there. I've now gone through the other pin aliases and have not seen this issue with other pins.

I'll probably release a new release of esphomeyaml in 1-2 weeks (my final exams start in 1,5 weeks, so I need to study πŸ“šπŸ€“). For now I'd just use pin: 2 if it's connected to D4 and pin: 4 if the sensor is connected to D2.

from esphome.

simonszu avatar simonszu commented on May 21, 2024

Thanks for your fast feedback. I'll do so tomorrow. Have success with your finals.

from esphome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.