Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Feature Requests
  3. Additional sleep methods with array of pins as parameters ?

Additional sleep methods with array of pins as parameters ?

Scheduled Pinned Locked Moved Feature Requests
24 Posts 5 Posters 5.2k Views 5 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Nca78

    @yveaux said in Additional sleep methods with array of pins as parameters ?:

    Yes, they have to set it to input. There's no pin configuration in the (AVR) sleep code: https://github.com/mysensors/MySensors/blob/development/hal/architecture/AVR/MyHwAVR.cpp#L153

    But atmega pins default as inputs so it's not really mandatory with the default IC.

    Y Offline
    Y Offline
    Yveaux
    Mod
    wrote on last edited by Yveaux
    #21

    @nca78 said in Additional sleep methods with array of pins as parameters ?:

    @yveaux said in Additional sleep methods with array of pins as parameters ?:

    Yes, they have to set it to input. There's no pin configuration in the (AVR) sleep code: https://github.com/mysensors/MySensors/blob/development/hal/architecture/AVR/MyHwAVR.cpp#L153

    But atmega pins default as inputs so it's not really mandatory with the default IC.

    I like to make things explicit, especially if you decide to port to another architecture later on

    http://yveaux.blogspot.nl

    N 1 Reply Last reply
    0
    • Y Yveaux

      @nca78 said in Additional sleep methods with array of pins as parameters ?:

      @yveaux said in Additional sleep methods with array of pins as parameters ?:

      Yes, they have to set it to input. There's no pin configuration in the (AVR) sleep code: https://github.com/mysensors/MySensors/blob/development/hal/architecture/AVR/MyHwAVR.cpp#L153

      But atmega pins default as inputs so it's not really mandatory with the default IC.

      I like to make things explicit, especially if you decide to port to another architecture later on

      N Offline
      N Offline
      Nca78
      Hardware Contributor
      wrote on last edited by
      #22

      @yveaux said in Additional sleep methods with array of pins as parameters ?:

      I like to make things explicit, especially if you decide to port to another architecture layer on

      I completely agree with you. Just stating that @mfalkvidd is not wrong when saying at the moment it's not necessary to declare pins as inputs

      To go back to the main subject should I make a first version of this code (in post 9) to have a clearer basis for future discussions ? Or am I going a wrong way ?

      1 Reply Last reply
      0
      • N Offline
        N Offline
        NeverDie
        Hero Member
        wrote on last edited by
        #23

        Anything is always better than nothing.

        1 Reply Last reply
        0
        • Y Yveaux

          @mfalkvidd said in Additional sleep methods with array of pins as parameters ?:

          I don’t think sketch developer should need to worry about setting the pin to input,

          Yes, they have to set it to input. There's no pin configuration in the (AVR) sleep code: https://github.com/mysensors/MySensors/blob/development/hal/architecture/AVR/MyHwAVR.cpp#L153

          mfalkviddM Offline
          mfalkviddM Offline
          mfalkvidd
          Mod
          wrote on last edited by
          #24

          @yveaux clarification: imho, if support for many interrupts is added in a future version of MySensors (which is what we're discussing in this thread), sketch developers should not need to manually call pinMode.

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          16

          Online

          12.1k

          Users

          11.2k

          Topics

          113.4k

          Posts


          Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • MySensors
          • OpenHardware.io
          • Categories
          • Recent
          • Tags
          • Popular