ampy | MicroPython Tool - Utility to interact with a MicroPython
kandi X-RAY | ampy Summary
kandi X-RAY | ampy Summary
We have been working on the next version of ampy which will solve various problems with the current system. Based on a new modular architecture, it makes adding device support and features very simple using plugins. It also aims to support coding over WiFi for supported devices. This should eliminate the need to have a wired connection and improve reliability as well. Here is an alpha release please go ahead and play with it. Leave suggestions for a new name in the issue section. :).
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Copy files from local to destination
- Enter raw REPL mode
- Create a directory
- Read data from the serial port
- Add a subjob to the progress bar
- Reset the board
- Evaluate expression
- Run the given file
- Run a pyboard
- Get a file from the board
- Get data from a file
- List all files in a directory
- List files
- Delete a directory
- Delete a remote file
- Remove a file or directory
- Connect to the given port
- Return the full port name for the given port
- Updates the progress bar
- Print the progress bar
- Render the progress bar
- Add a subjob
- Run a command on the device
- Execute the given file
- Write bytes to stdout
ampy Key Features
ampy Examples and Code Snippets
Community Discussions
Trending Discussions on ampy
QUESTION
When I include a while True:
in my main.py
I can no longer overwrite it and upload a new version.
Many beginner guides and tutorials, eg: this one and this one, use while True
. So I guess it should be possible.
I have tried using Thonny and ampy
for uploading (overwriting) main.py while the board was running the endless loop.
My current workaround is connecting to the REPL using picocom
and deleting the file using os.remove
.
Micropython version: esp8266-20210618-v1.16
NB. I know that timers can mitigate the need for an endless loop.
...ANSWER
Answered 2021-Jul-01 at 17:18You can use Arduino, similar to C++ instead of Python by using Arduino IDE. NodeMCU supports the Arduino. There is a void loop() {}
part in Arduino and you can use it as endless loop. This tutorial explains well.
QUESTION
I'm trying to receive stock data for about 1000 stocks, to speed up the process I'm using multiprocessing, unfortunately due to the large amount of stock data I'm trying to receive python as a whole just crashes.
Is there a way to use multiprocessing without python crashing, I understand it would still take some time to do all of the 1000 stocks, but all I need is to do this process as fast as possible.
...ANSWER
Answered 2021-Jan-31 at 19:18Ok, here is one way to obtain what you want in about 2min. Some tickers are bad, that's why it crashes.
Here's the code. I use joblib for threading or multiprocess since it doesn't work in my env. But, that's the spirit.
QUESTION
I just installed ampy with pip on MacOS (Big Sur). However, I keep getting this error message:
...ANSWER
Answered 2020-Dec-06 at 19:12Since you are on MacOS, I altered my answer a bit...
After installation you can either add the path to ampy to your environment path by:
QUESTION
Can I use Sympy library in esp8266 micropython?
I tried to install it using ampy, but it returns an error
I want to solve linear equations:
For example:
...ANSWER
Answered 2020-Mar-25 at 17:12When you are trying to use a library in MicroPython (or Python) and you get an import error it means a library needed by that library is missing or unavailable.
It may be missing because a dependency was not installed or it may be missing due to differences in Python version (2.x vs 3.x or CPython vs. MicroPython)
In this case, future
is not a module available in the MicroPython standard library. There is a "future" module library. You can see here: https://libraries.io/pypi/micropython-future and https://github.com/micropython/micropython-lib. Try adding this to your ./lib and see if sympy works.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ampy
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