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. My Project
  3. [example] Dimmable LED with rotary encoder

[example] Dimmable LED with rotary encoder

Scheduled Pinned Locked Moved My Project
3 Posts 2 Posters 3.7k Views 2 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #1

    I have created an example for a dimmable led light node with an attached rotary encoder for adjustment of light level.

    The sketch fades light smoothly (none blocking) and remembers the last light level when turning off light by clicking rotary button.

    20150421_184132 copy.jpg

    https://codebender.cc/sketch:106978

    1 Reply Last reply
    4
    • greglG Offline
      greglG Offline
      gregl
      Hero Member
      wrote on last edited by gregl
      #2

      Looks good @hek

      Noticed you have dupe lines 54/67 and 55/68 also 101/103....

      hekH 1 Reply Last reply
      0
      • greglG gregl

        Looks good @hek

        Noticed you have dupe lines 54/67 and 55/68 also 101/103....

        hekH Offline
        hekH Offline
        hek
        Admin
        wrote on last edited by
        #3

        @gregl said:

        Noticed you have dupe lines 54/67 and 55/68 also 101/103.

        Opps! Removed.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        19

        Online

        11.7k

        Users

        11.2k

        Topics

        113.1k

        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