UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    How to read the Ambient Light?

    Scheduled Pinned Locked Moved Support
    3 Posts 3 Posters 701 Views 1 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.
      • costalesC Offline
        costales
        last edited by costales

        Hi!

        I'm trying to read the Ambient Light. This would allow me to set a dark map or light map in uNav.

        I followed the documentation, but it doesn't show anything in a PC and it returns an error dump in phone (line 12).
        Here is the code if you want to take a look.

        In 2015 it appears doesn't be implemented yet.

        Could you please, inform me about the current status and a working example?

        Thanks in advance!

        advocatuxA 1 Reply Last reply Reply Quote 0
        • H Offline
          hummlbach
          last edited by

          Funny, I was trying to read out something from the proximity sensor of my meizu pro 5 yesterday evening. But lowlevel from shell. I found /sys/bus/i2c/devices/15-0029 and https://github.com/leachj/vl6180_pi but I'm still not getting it (where's the device file to read/write from/to?)... Perhaps someone could give me a hint on this occasion. Sorry for abusing/partially hijacking your the thread :-#

          1 Reply Last reply Reply Quote 1
          • advocatuxA Offline
            advocatux @costales
            last edited by

            @costales I don't know the answer but I've linked your question in the OpenStore group (https://open-store.io/telegram).

            1 Reply Last reply Reply Quote 1
            • First post
              Last post