Skip to content
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

Issue with APDS9960 sensor on Raspberry Pi 3 Model B+ #823

Open
OumaymaAzennoud opened this issue May 2, 2024 · 1 comment
Open

Issue with APDS9960 sensor on Raspberry Pi 3 Model B+ #823

OumaymaAzennoud opened this issue May 2, 2024 · 1 comment
Labels
New Board Request This is a request for a new board to be supported.

Comments

@OumaymaAzennoud
Copy link

OumaymaAzennoud commented May 2, 2024

Dear Adafruit Support Team,

I hope this message finds you well. I am reaching out to report an issue I encountered while attempting to interface with the APDS9960 sensor on my Raspberry Pi 3 Model B+.

When running a Python script to communicate with the sensor, I encountered the following error:

raise NotImplementedError(
NotImplementedError:
Adafruit-PlatformDetect version 3.62.0 was unable to identify the board and/or
microcontroller running the Windows platform. Please be sure you
have the latest packages by running:
'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

    If you are running the latest package, your board may not yet be supported. Please
    open a New Issue on GitHub at https://github.com/adafruit/Adafruit_Blinka/issues and
    select New Board Request.

Here is my Python Code :

import board
import busio
import adafruit_apds9960

i2c = busio.I2C(board.SCL, board.SDA)

apds = adafruit_apds9960.APDS9960(i2c)

apds.enable_proximity = True
apds.enable_color = True

proximity = apds.proximity
red, green, blue, clear = apds.color_data

print(f"Proximity: {proximity}")
print(f"RGB Color: R={red}, G={green}, B={blue}, Clear={clear}")

@OumaymaAzennoud OumaymaAzennoud added the New Board Request This is a request for a new board to be supported. label May 2, 2024
@makermelissa
Copy link
Collaborator

Yeah, that's pretty odd to get this on a Pi 3. What are the results of running cat /proc/cpuinfo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Board Request This is a request for a new board to be supported.
Projects
None yet
Development

No branches or pull requests

2 participants