Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
mitchb1
 
Posts: 6
Joined: Thu Aug 02, 2018 12:48 pm

Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by mitchb1 »

My goal is to have the Adafruit ESP32 Feather V2 working with CircuitPython and PyCharm in Windows 10. The chip on the board is ESP32-PICO_MINI-02. I have been successful with MicroPython, but not CircuitPython. I am stuck / confused about whether I need to copy CircuitPython libraries to the board. This would be problematic because my board doesn't appear as a USB drive.

Questions:
  1. Can I use CircuitPython in PyCharm the same way as MicroPython?
  2. How are the CircuitPython modules handled?
From the command prompt, I used esptool to erase and program the board with MicroPython v1.19.1 and successfully ran the LED blink and WiFi tests.

I erased and programmed the board with CircuitPython 8.0.0-beta.0 and the LED blink test doesn't work. Maybe this has to do with CircuitPython libraries which need to be copied to the board? This is the CircuitPython example code I used:

Code: Select all

import time
import digitalio
from adafruit_blinka.board.feather_huzzah import *

led = digitalio.DigitalInOut(pin.GPIO13)
led.direction = digitalio.Direction.OUTPUT

while True:
    led.value = True
    time.sleep(0.5)
    led.value = False
    time.sleep(0.5)
I have not been able to get the board to appear as a drive or know if I need to. Thanks for any suggestions.

User avatar
rooppoorali
 
Posts: 98
Joined: Sat Jul 16, 2022 12:04 pm

Re: Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by rooppoorali »

Have you gone through this guideline? https://learn.adafruit.com/welcome-to-c ... cuitpython

User avatar
mitchb1
 
Posts: 6
Joined: Thu Aug 02, 2018 12:48 pm

Re: Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by mitchb1 »

It looks like a prerequisite to proceeding is for the ESP32 board to appear as a drive on my PC. It doesn't and I don't know how to fix that.

User avatar
adafruit_support_carter
 
Posts: 29164
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by adafruit_support_carter »

The Feather ESP32 V2 will *not* show a CIRCUITPY drive as other boards will. There is some history to this.

This is older information, but useful for background info:
https://learn.adafruit.com/welcome-to-c ... or-esp8266

CircuitPython support for ESP32 has only recently been added back in. To install CircuitPython on ESP32, follow this guide:
https://learn.adafruit.com/circuitpytho ... uick-start

In terms of PyCharm, not sure. It's possible PyCharm will only work with boards with native USB that can present the CIRCUITPY drive.

User avatar
mitchb1
 
Posts: 6
Joined: Thu Aug 02, 2018 12:48 pm

Re: Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by mitchb1 »

Thanks. I followed the directions and it works! I think PyCharm is unlikely to work with CircuitPython though.

User avatar
adafruit_support_carter
 
Posts: 29164
Joined: Tue Nov 29, 2016 2:45 pm

Re: Adafruit ESP32 Feather V2 / CircuitPython / PyCharm

Post by adafruit_support_carter »

Checkout Thonny as a possible option:
https://learn.adafruit.com/circuitpytho ... ny-3124379

It has the ability to connect over the serial connection and present things in file browser interface. There are some potential rough edges. But it's all being actively worked as well.

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”