Skip to content

Proximity on Demand -- Typo #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
rwhite-lightbox opened this issue Feb 2, 2025 · 1 comment · Fixed by #5
Closed

Proximity on Demand -- Typo #4

rwhite-lightbox opened this issue Feb 2, 2025 · 1 comment · Fixed by #5
Assignees

Comments

@rwhite-lightbox
Copy link

import board
import adafruit_vcnl4020 as vcnl4020

sensor = vcnl4020.Adafruit_VCNL4020(board.I2C())

self._sensor.proximity_on_demand = True
AttributeError: 'Adafruit_VCNL4020' object has no attribute 'proximity_on_demand'

dir(sensor)
['class', 'init', 'module', 'qualname', 'dict', 'i2c_device', '_product_revision', 'proximity_rate', 'led_current', 'lux_rate', 'lux_averaging', '_enable', 'lux_enabled', 'proximity_enabled', 'selftimed_enabled', 'clear_interrupts', '_int_status_reg', 'interrupt_count', '_int_counts', '_interrupt_count', '_led_current', '_avg_samples', '_lux_averaging', '_lux_rates', '_lux_rate', 'proximity_frequency', '_proximity_frequencies', '_proximity_frequency', '_proximity_rates', '_proximity_rate', 'auto_offset_comp', '_command_reg', 'continuous_conversion', '_int_ctrl_reg', 'lux', 'lux_on_demand', 'lux_ready', 'proximity', 'promixity_on_demand', 'proximity_ready', 'low_threshold', 'high_threshold', 'proximity_interrupt', 'lux_interrupt', 'high_threshold_interrupt', 'low_threshold_interrupt']

@rwhite-lightbox
Copy link
Author

Line 100 of adafruit_vcnl4020.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants