Comments (11)
Hiya! We are discontinuing support for ampy, and will no longer be maintaining it. We are leaving this repository available for continued use. If you would like to take over supporting it, please contact us on the Adafruit Discord server and we can transfer the repository to you.
If you wish to continue developing it on your own, please fork the repository.
from ampy.
Do you actually have a legit use-case for a rename feature?
from ampy.
Hello @devxpy, I guess I have it. When you work on a script, you run the script from an ampy command but then you want to rename the script into boot.py
or main.py
so you can now unplug the board and test if booting into the script works as expected.
This will also make our life easier since we do not need to type each command for doing it.
e.g:
First script test.py
(basic script to output text on a LCD from an API) you run it on the board with ampy -p <port> run test.py
.
Your first run went OK, so now want to rename the file on the board to boot.py
and to do so you have to do the following:
ampy -p <port> rm test.py
- Create a copy of the file on your computer and then call it
boot.py
ampy -p <port> put boot.py
I hope it makes sense what I just explained above π
Regards.
from ampy.
I can work on adding an mv
command, since it's the UNIX counterpart. Don't have a device with me right now, give me a few weeks.
from ampy.
If you want me to test something just let me know!
Regards.
from ampy.
Hello @devxpy, any updates here? Anything I can help with?
from ampy.
I'm devoting most of my time working on ampy2.
But if you have any code you want to upstream, I'll gladly accept your PR.
from ampy.
And in ampy2 is the option? I can do the PR in the ampy2 instead of doing it in here.
from ampy.
ampy2 is not really usable right now. I'm still working on the Dockerfile for micropython.
from ampy.
Really interesting, what I do now in order to not use a lot of memory is to minify the script I'm loading into the board which might be cool to add on the ampy2.
The code I think it is documented and I could add the option on the new ampy2 if you wish. Of course, when you have a working version.
from ampy.
I'll try my best to include a plugin system in ampy2, so that features like this can be added independently. Something like cargo's plugins.
from ampy.
Related Issues (20)
- possibility to put files to a subdirectory
- not neccessarily working on esp32-cam-mb HOT 1
- Ampy cannot execute some commands due to various errors
- GET fails with CircuitPython
- On Ubuntu 22.04: ampy runs into an errror, ab ttyUSB0 is after then never available, till replugin the USB wire.
- put includes hidden folders like .git
- ζͺζΎε° 'ampy' ε½δ»€
- timeout waiting for first EOF reception HOT 1
- Fix location of progress_bar
- How do printing and debug at minicom while ampy run? HOT 1
- I can run my main.py (blinky_1.py) test but the put command does not work
- new feature: add a STOP command HOT 1
- The reason why ampy is unreliable for a large number of boards, like ESP32CAM etc... HOT 2
- CAUTION - THIS PROJECT IS STALE (UNMAINTAINED). There is no point submitting PRs into it - nobody merges any of them... HOT 11
- Cannot upload file with specific starting character on Windows HOT 2
- `rmdir --missing-okay` not working on ESP32 w. MicroPython HOT 1
- infuriating behaviour of recursive put HOT 1
- ampy.pyboard.PyboardError: could not enter raw repl HOT 5
- ampy not working after raspberry pi 4 dist-upgrade
- Make a new release to PyPI please HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ampy.