adafruit / Adafruit_Blinka

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

FT232H not working in Thonny but can be seen in terminal #903

Open sjagrant opened 1 day ago

sjagrant commented 1 day ago

FT232H not working in Thonny but can be seen in terminal. Running on Windows and followed Adafruit install instructions with positive feedback for tests.

raise NotImplementedError( NotImplementedError: Adafruit-PlatformDetect version 3.75.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'

Check and installed correctly

caternuson commented 1 day ago

Probably related to Thonny not seeing the environment variable.

Did you run the post install checks from within Thonny also? https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/troubleshooting In particular, this one: https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/troubleshooting#check-environment-variable-within-python-3041702

caternuson commented 1 day ago

image

Can test like this: image

sjagrant commented 1 day ago

Many thanks Carter that sorted it out.

What excellent support. Best regards, stuart

On Wed, 16 Oct 2024 at 17:28, Carter Nelson @.***> wrote:

  • In Thonny, go to Tools -> Options...
  • Enter BLINKA_FT232H=1 in the Environment variables
  • Restart Thonny

image.png (view on web) https://github.com/user-attachments/assets/4b121d3a-8093-4351-9a43-50c2ea8293e3

Can test like this: image.png (view on web) https://github.com/user-attachments/assets/a1efaa2b-6b5c-4daf-84a4-2d3983ed41dd

— Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_Blinka/issues/903#issuecomment-2417329502, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGEK7ZQ4JNHTNCP5HBQ3PDZ32H2TAVCNFSM6AAAAABQBFZOEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXGMZDSNJQGI . You are receiving this because you authored the thread.Message ID: @.***>

sjagrant commented 1 day ago

Yes I did, but when I got to NotImplementedError recheck Zadig I didn't get any further and kept going back to setup steps.---


If you get

NotImplementedError: Operation not supported or unimplemented on this platform

Go back to the setup steps and Zadig your board if on Windows https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/troubleshooting#check-environment-variable-within-python-3041702 Check environment variable within python

At the Python REPL, type

import os os.environ["BLINKA_FT232H"]

if you get a KeyError it means you did not set the environment variable right


Again many thanks for your great support.

On Wed, 16 Oct 2024 at 17:07, Carter Nelson @.***> wrote:

Probably related to Thonny not seeing the environment variable.

Did you run the post install checks from within Thonny also?

https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/troubleshooting In particular, this one:

https://learn.adafruit.com/circuitpython-on-any-computer-with-ft232h/troubleshooting#check-environment-variable-within-python-3041702

— Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_Blinka/issues/903#issuecomment-2417279735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AWGEK7ZQYFHCCJYZ6CRWOS3Z32FNNAVCNFSM6AAAAABQBFZOEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMJXGI3TSNZTGU . You are receiving this because you authored the thread.Message ID: @.***>