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

PyCharm, micropython module, does not print any result (output) #273

Open
renejeanmercier opened this issue Dec 20, 2023 · 7 comments
Open

Comments

@renejeanmercier
Copy link

Hello,

I just installed and ran the following micropython program on and ESP32 :

import machine
import time
pin = machine.Pin(2, machine.Pin.OUT)
while True:
pin.value(0)
print("LED ON");
time.sleep(1)
pin.value(1)
print("LED OFF");
time.sleep(1)

Everything upload fine. It runs fine as well (I checked the output with puTTY and Thonny).

But using PyCharm I don't get any printed out on the screen.

Is there something I do wrong or I am missing? Is it something you can please verify?

I am running debian :
PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"

Thank you so much.

Regards,

Rene-Jean

@gabemorris12
Copy link

You have to run it from the REPL console. I believe this feature is temporarily down. You can only flash scripts. See issue #270.

@renejeanmercier
Copy link
Author

renejeanmercier commented Dec 20, 2023 via email

@zerovijay
Copy link

zerovijay commented Dec 20, 2023

Pycharm only support ESP8266, I thing this is compatible issue!
if you are using ESP8266 make sure you enable the Board support
Screenshot from 2023-12-20 16-49-09
Sorry i don't have ESP8266 to recreate issue!
Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine.
Note: if you want to use serial output use (minicom)

$ sudo apt install minicom

$ minicom -o -D /dev/ttyACM0

@zerovijay
Copy link

This is temporary issue. maybe it's fix on next update!

@renejeanmercier
Copy link
Author

renejeanmercier commented Dec 20, 2023 via email

@zerovijay
Copy link

zerovijay commented Dec 21, 2023

Hi Vijay. Where will I find the version you mentioned in your email. Please give me the hyperlink. Regards. René-Jean . Le mer. 20 déc. 2023 à 06:27, Vijay @.> a écrit :

Pycharm only support ESP8266, I thing this is compatible issue! if you are using ESP8266 make sure you enable the Board support Screenshot.from.2023-12-20.16-49-09.png (view on web) https://github.com/JetBrains/intellij-micropython/assets/137445021/f9ff2869-0329-4638-bce2-ab5e6fdaac63 Sorry i don't have ESP8266 to recreate issue! Note: MicroPython REPL not working on New update so wait for next update or use older pycharm version 2023.2.5 it's working just fine. — Reply to this email directly, view it on GitHub <#273 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGFVP35AWUGBH63OAQPASATYKLDTLAVCNFSM6AAAAABA4E2QOSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRUGMYTGNJWGI . You are receiving this because you authored the thread.Message ID: @.
>

Use this link to get pycharm all version Click here:
If you face any issue use jetbrains installer More information available on jetbrains official page.

@renejeanmercier
Copy link
Author

renejeanmercier commented Dec 22, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants