Comments (4)
So I've written 2 functions for this on https://github.com/funkyHat/uflash/tree/unhexlify
They look good for getting the script back out of a .hex file that was saved somewhere (I'm not sure if it's easy or not to get a flashed .hex back out of a micro:bit so I'm ignoring that for now :)).
The last bit is the command line interface.
I think it makes sense to switch to using argparse (or perhaps click? But argparse is in the standard library). @ntoll what do you think?
from uflash.
Send it as a PR and I'll review. THIS IS TOTALLY AWESOME!!!
Agree about arg parsing. Path of least dependencies is good too.
from uflash.
So I've updated my branch with the argparse code and a few more tests. Every time I try to rebase though my "unhexlify()" function is disappearing? Weird.
Still trying...
from uflash.
Ah think I've got it :)
from uflash.
Related Issues (20)
- Is it possible to flash several .py files simultaneously? HOT 1
- Performance penalty if firmware hex string is dropped? HOT 4
- Please tag releases
- uflash wont flash a 8176 byte script HOT 2
- uflash fails to find microbit HOT 1
- flashing a script is different from putting a main.py HOT 1
- uflash needs a --port option HOT 1
- Flashing with custom micropython is not working HOT 6
- Check .hex file burning completed in microbit HOT 3
- If my computer is plugged into two microbits, how do I know which serial port corresponds to which microbit device?Through VID PID?
- installing uflash gives an error HOT 2
- uflash cannot generate hex for microbit v2. HOT 14
- Error extracting Qtruck-BLE.hex: 'utf-8' codec can't decode byte 0x8a in position 1: invalid start byte HOT 3
- py2hex? HOT 1
- with --runtime disabled, how to upload a new hex file? HOT 4
- Next uFlash release HOT 1
- where do i put microbit.hex so uflash will use that?
- I can't import log HOT 5
- uflash : The term 'uflash' is not recognized as the name of a cmdlet HOT 2
- The 'runtime' flag is no longer supported
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 uflash.