Pymakr | Python IDE based on eric customized to offer a plug
kandi X-RAY | Pymakr Summary
kandi X-RAY | Pymakr Summary
Pymakr is a Python IDE based on eric and customized to offer a plug and play development experience with the WiPy, the LoPy and other modules from Pycom that run MicroPython.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Create edit actions .
- Create edit actions .
- Get the available options .
- Initialize actions
- Process a line .
- Get the command
- Define a statement .
- Check the password .
- Scans src of src .
- Generates HTML for the editor .
Pymakr Key Features
Pymakr Examples and Code Snippets
Community Discussions
Trending Discussions on Pymakr
QUESTION
I am currently working on a project which involves taking soil moisture measurements using sensors and a Pycom LoPy4 mounted on the expansion board V3.1. I am currently using VS code as my IDE and using the pymakr extension to run the micropython with my board.
At the start of my project the import function was working correctly and I was using code directly copied from the internet as seen below and it would run without error:
...ANSWER
Answered 2021-Dec-05 at 17:39You can add the directory to the sys.path that python uses to find modules and import as usual:
QUESTION
I'm using Pymakr on VScode to program a Pycom L01, which is connected to several sensors.
i'm trying to use smbus2 library, but i can't import it.
I created a python virtual enviroment and installed it using 'pip install smbus2', but when i try to upload the sketch, the output is:
ANSWER
Answered 2021-May-19 at 08:41May be You have not installed smbus2 module. Please install it and import it in your program.
QUESTION
I'm a complete beginner and I recently got the LoPy4 development board as well as the expansion board. I am currently following the tutorial on changing the RGB lights on the board. I have been following the steps such as installing the Pymakr extension on VSCode and making the main.py and boot.py files. I am able to call import pycom
in the Pymakr console and I am then able to turn off the heartbeat using pycom.heartbeat(False)
.
However, when I try the same thing by typing it in the main.py file, I get an error:
ModuleNotFoundError: No module named 'pycom'
There seems to be no issue with importing the other modules like import time
or import random
.
Anyone have any ideas what's the problem here?
...ANSWER
Answered 2020-Sep-02 at 12:55Think of this as having access to two Pythons :
Python,
- installed on your PC,
- used by VSCode to do syntax checking and Debugging
- does not know about Pins and any pyboard specific modules
- if you run ▶ or Debug (F5) in VScode , it will attempt to run / debug your code on your PC ( which may fail )
MicroPython
- running on your board
- accessible though
Pymakr
- knows about the pins and the pyboard module
- a connection from VScode to the MicroPython terminal
- a method to sync/upload/download files beetween your PC and the MCU board
- an ability to Upload and Run a .py file ( upload from PC to board , then run on the board )
- an ability to execute a few lines of code from your current file to the board (think of it as a copy & paste )I assign the F8 or ctrl-Shift-Enter hotkey to this
to improve things like syntax checking for MicroPython I have created a few tools to make make the `Big Python' act more like the Micro Python.
and has been packaged as micropy-cli by Braden for simple use
You can download and install the latest version of this software from the Python package index (PyPI) as follows:
QUESTION
My specific question is related to MicroPython development on Pycom's GPY with Pytrack expansion board. I also have Pycom's Pymakr extension for VSCode installed as well. But I feel the question can be asked and answered more generally and I'll try to do that...
When doing development on Micropython, you will have application specific libraries that you load from ./lib
but you also load system libraries such as import [ pycom | pyboard | your_board ]
which are not available to VSCode since they are not in your workspace folders, but they are available at runtime on the board.
How do you make these available to VSCode so IntelliSense will work correctly AND you won't see import errors in VSCode?
...ANSWER
Answered 2020-Mar-19 at 16:41I have ESP32 so my config sample will be ESP32 based. Download https://github.com/lixas/ESP32-Stubs-VSCode
OR
Use following to generate for your board: https://github.com/Josverl/micropython-stubber and download those files from board
My settings.json file:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Pymakr
You can use Pymakr like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page