pipresents-beep icon indicating copy to clipboard operation
pipresents-beep copied to clipboard

VL6180X Support

Open W1ldKard opened this issue 3 years ago • 2 comments

Hi, would there be support for VL6180X in the future? I would like to adjust my screen brightness depending on ambient light and trigger Play/Pause using this sensor.

Also, would there be at least a fade transition added in the future? Cut transition is a bit jarring.

W1ldKard avatar Feb 17 '22 19:02 W1ldKard

The VL6180X appears to be for robotics. It has a range of only 10 cms and I don't think its going to be much use for Pi presents applications.

If you know a bit of Python it would not be difficult to modify one of the I/O device drivers in pp_io_plugins directory. The I/O driver API provides a framework to poll a device such as yours at intervals and generate an input event if the range moves across a threshold.

To change the brightness of your monitor I suspect the best way would be to include the interface with the monitor in the I/O device driver.

KenT2 avatar Feb 18 '22 09:02 KenT2

Thank you for your response Ken! I will see what I can do.

On Fri, Feb 18, 2022 at 1:46 AM Ken @.***> wrote:

The VL6180X appears to be for robotics. It has a range of only 10 cms and I don't think its going to be much use for Pi presents applications.

If you know a bit of Python it would not be difficult to modify one of the I/O device drivers in pp_io_plugins directory. The I/O driver API provides a framework to poll a device such as yours at intervals and generate an input event if the range moves across a threshold.

To change the brightness of your monitor I suspect the best way would be to include the interface with the monitor in the I/O device driver.

— Reply to this email directly, view it on GitHub https://github.com/KenT2/pipresents-beep/issues/49#issuecomment-1044232102, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL4CGJ3MUOERI5OLEMKCLLTU3YINZANCNFSM5OVTTHIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

W1ldKard avatar Feb 18 '22 16:02 W1ldKard