Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Brightness of on-board LED.

    Scheduled Pinned Locked Moved Enhancements
    rgbledpycom
    10 Posts 4 Posters 3.6k Views 4 Watching
    Loading More Posts
    • 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.
    • A Offline
      alidaf
      last edited by

      Is there any way to set the brightness level of the LED? It has burned holes in my retinas!

      L 1 Reply Last reply Reply Quote 0
      • L Offline
        livius @alidaf
        last edited by

        @alidaf said in Brightness of on-board LED.:

        Is there any way to set the brightness level of the LED? It has burned holes in my retinas!

        put label on it ;-)

        think about people first, then computers

        A 1 Reply Last reply Reply Quote 2
        • T Offline
          this.wiederkehr
          last edited by this.wiederkehr

          https://docs.pycom.io/chapter/firmwareapi/pycom/pycom.html

          you can switch heartbeat of:
          pycom.heartbeat(False)

          If you want to light the LED according to your own schema you can adjust the brightness of the individual colors (red, green, blue) by setting the respective hex value.
          'pycom.rgbled(color)'

          e.g. pycom.rgbled(0x000002) is weak blue.

          Edit: There is no way to adjusting the brightness of pycom module signals when booting or of the heartbeat unless building your own firmware.

          A 1 Reply Last reply Reply Quote 0
          • A Offline
            alidaf @livius
            last edited by

            @livius Bubblegum fixes everything!

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              livius @alidaf
              last edited by

              @alidaf
              he he :)

              think about people first, then computers

              1 Reply Last reply Reply Quote 0
              • A Offline
                alidaf @this.wiederkehr
                last edited by

                @this-wiederkehr I did some work on an RGB LED strip a while ago and the RGB values didn't really affect the brightness, just the tone. We could really do with the equivalent of the FastLED Arduino library although that's a bit overkill for the on-board LED!

                T J 2 Replies Last reply Reply Quote 0
                • T Offline
                  this.wiederkehr @alidaf
                  last edited by

                  @alidaf: I'd say the brightness is different...

                  See the difference between e.g.:

                  pycom.rgbled(0x000010)
                  to
                  pycom.rgbled(0x0000ff)

                  they are the same tone (clear blue or you name it) but clearly brightness is different, not? Or how'd you call the difference?

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    alidaf @this.wiederkehr
                    last edited by

                    @this-wiederkehr The problem is in getting colours that are not primary. The ratio of R:G:B should be the same in order to get an effective difference in brightness for the same tone. Usually brightness levels are set by changing the PWM timing.
                    Your idea is a good workaround for now.

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      jmarcelino @alidaf
                      last edited by jmarcelino

                      @alidaf
                      The onboard LED is being driven by an hardware accelerated peripheral, the RMT, so it is already overkill :)

                      https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/mods/modled.c

                      I think this can be can improved, I'll move it to Enhancements section. Thanks for the suggestion.

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        alidaf @jmarcelino
                        last edited by

                        @jmarcelino Thank you for noting the issue and acting on it.

                        1 Reply Last reply Reply Quote 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
                        • 1 / 1
                        • First post
                          Last post

                        Pycom on Twitter

                        Pycom