Giter VIP home page Giter VIP logo

eduvik / mu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mu-editor/mu

32.0 32.0 8.0 4.17 MB

A "micro" editor for MicroPython and the BBC micro:bit - this fork targets the ESP8266 and other micropython boards - switch to the feature/multi-board branch to use this. Written in Python and Qt5.

License: GNU General Public License v3.0

Makefile 0.17% Python 99.46% CSS 0.13% Ruby 0.15% Shell 0.09%

mu's People

Contributors

alistair-broomhead avatar asb avatar askvictor avatar carlosperate avatar inglesp avatar kushaldas avatar martinohanlon avatar ndevox avatar ntoll avatar pelikhan avatar stestagg avatar tjguk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mu's Issues

talk over webREPL

the webREPL for supported devices would be nice to implement in mu. Bonus points for device auto-discovery, as well as first-time-connection simplification.

Can't run on Mac OSX

OSX El Capitan 10.11.6

Cloned from repo feature/multi-board branch, but crashes when python3 run.py is executed.
Only shows the splash screen for a second, before crashing.

Terminal output:
Henriks-MacBook-Pro:mu HenriksFolder$ python3 run.py
Logging to /Users/HenriksFolder/Library/Logs/mu/mu.log
QThread: Destroyed while thread is still running
Abort trap: 6

Complete crash_log attached

crash_log.txt

additions for requirements.txt

using latest Python3 on Windows 10 I needed to do a

pip install qscintilla
and
pip install PyQt5

after that it loaded fine.

REPL pane: conrol keys aren't passed to ESP8266

This severely limits its usability. The fix under Linux is as follows, but evidently testing is needed on Mac and Windows, which I'm not equipped to do.
interface.py

    def keyPressEvent(self, data):
#lines omitted
        elif data.modifiers() == Qt.ControlModifier:
        #     # Handle the Control key.  I would've expected us to have to test
        #     # for Qt.ControlModifier, but on (my!) OSX Qt.MetaModifier does
        #     # correspond to the Control key.  I've read something that suggests
        #     # that it's different on other platforms.
        #     # see http://doc.qt.io/qt-5/qt.html#KeyboardModifier-enum
             if Qt.Key_A <= key <= Qt.Key_Z:
        #         # The microbit treats an input of \x01 as Ctrl+A, etc.
                 msg = bytes([1 + key - Qt.Key_A])
        self.serial.write(msg)

The board now responds correctly to ctrl-A ctrl-B ctrl-C ctrl-D and ctrl-E

WebREPL password for file browsing mode

in straight repl, the password prompt appears as part of the normal text flow. When browsing files, we need a way to implement sending the password. This could be a config setting, or prompt the user.

Considering some UI changes

I'm starting to imagine how the UI could provide a better workflow. I'm thinking of:

  • putting the file panes as a side-bar on the left
  • having a 'new project' button that creates a new project folder, which contains a settings file for that project, and create boot.py and main.py files (with some boilerplate starting comments/code)
  • sync buttons (in either direction) that will copy all files from the project folder to the device (or vice versa)
  • a 'run' button that will upload and run the current file

Any suggestions or comments would be appreciated

Failure to install mu on Win XP and Xubuntu 14.04

Having failed to either run the binaries of mu on my Acer with an exec error I downloaded the Windows variant onto my XP (SP3) desktop. After thinking about it for a bit it gives Fatal Error. run returns -1. The mbed serial driver is installed and working OK and the Microbit attaches its file system OK but no mu.
Running the Python online interface from the Microbit website works on both machines so the communications are OK on both, I am confused and my brain hurts.

Can't find config.py

See title.
I got it stating after manually installing these packages
python3-pyqt5
python3-pyqt5.qtserialport*
python3-pyqt5.qsci

but I don't know how to configure it. There is no config.py

Question 2: How do I use the setup.py?

Best regards and thanks for helping.
Pascal

Importing logging module on mu

Trying out your python scripts on my mu editor but there is an import error with the line 'import logging'. How to import the logging module (and other modules) on mu editor?

get 'SyntaxError'

with python3 on win
D:\TEMP\micropython\mu-feature-multi-board>python run.py
Traceback (most recent call last):
File "run.py", line 2, in
from mu.app import run
File "D:\TEMP\micropython\mu-feature-multi-board\mu\app.py", line 27, in
from mu.logic import Editor, LOG_FILE, LOG_DIR
File "D:\TEMP\micropython\mu-feature-multi-board\mu\logic.py", line 380
self.fs = get_upython_device(async=False)
^
SyntaxError: invalid syntax

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.