Code Monkey home page Code Monkey logo

cpup's Introduction

cpup

Copy files to a MicroPython internal filesystem like on ESP8266 and ESP32

Because IDE plugins are tiresome, and CLI utilities are nice.

Usage

To get usage:

cpup -h

Usage: ./cpup <-f in_filename> [-o out_filename] [-d /dev/ttyACM0] [-s 115200] [-v]
       ./cpup -h

Defaults are as shown. Will use -f as -o if -o is not specified.

Note, this does not hold your hand. There are no checks for sufficient space, and existing files of the same name are simply overwritten. Sharp tool, use with care, will ya?

Note, file get does not work yet.

Also also wik, cat.py can help with that at the REPL. Toss it into lib/cat.py, then from cat import * and cat('filename')

Pro Tips

Runs on GNU/Linux. Probably won't work on a Mac due to stty weirdness. I have not tested.

If you happen to have ModemManager running on your GUI-tacular Linux desktop, get rid of it, because it screws up things like this, dfu-util, etc., by trying to throw AT commands at newly-attached USB serial devices.

License

Released under MIT license

cpup's People

Contributors

aaronkondziela avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.