adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
437 stars 327 forks source link

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

Open OumaymaAzennoud opened 1 month ago

OumaymaAzennoud commented 1 month ago

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}")

makermelissa commented 1 month ago

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