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