-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Future Ideas for additional features #20
Comments
Another idea I had was to support additional language color coding based on file extension that was opened. This would be fairly easy to add. |
This is more of a "way out there" idea and is probably impractical. A GUI that allowed a person to create a program interface and add code to the widgets kinda like Visual Basic or Hypercard and it generates a CircuitPython program that somebody could download to a device. Maybe something for PyPortal to start with. Maybe it could make use of the displayio layout library and various UI elements we already have done. |
In USB workflow. |
Huh, ok. If you know how to to this, or could at least provide further information, that would be great. I tried to implement this using webkitdirectory (as I described in more detail in #15) and it just returned all of the files. Perhaps I didn't explore this option as thoroughly as I should have. |
Is this what you're referring to? https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle |
Ok, yeah, this looks very promising and is more in line with how I wanted USB workflow to work anyways. I will explore this option very soon. Thanks for the suggestion and pointing me in the right direction. |
No problem. |
Thanks. The intention is to have the USB workflow only run from https://code.circuitpython.org, so #28 would probably need to be completed first. |
Sorry, just want to know a little more. What do you mean by "run from https://code.circuitpython.org/"? |
Ah, to get around some browser security issues, Web Workflow loads from the device itself using http. The device loads https://github.com/circuitpython/web-editor/blob/main/assets/js/device.js which pulls in and loads the website. More information is available at https://learn.adafruit.com/getting-started-with-web-workflow-using-the-code-editor/usage. |
I think the circup-like feature (as mentioned in the first post above) is what would be probably most useful. With Web Workflow, because the file system needs to have USB mass storage disabled, updating libraries becomes really inconvenient. |
Something that could be built on top of the circ-up feature would be a code scanner that automatically detects the libraries you need and asks if you would like to update/install them. |
curious to know what is the best way to pull the latest libraries from front end? |
One simple but helpful idea: Open 2 directories
At the moment saving file to CIRCUITPY, make the same update to the local directory. This is useful for project backup. |
Here's one way I've done it before: https://github.com/adafruit/Adafruit_Dynamic_Bundler, though it likely needs updating for more recent CP versions. |
i like the idea to program CP in a visual way just some thoughts on this
i personally like the flow based version more than the blocky approach as its more of a real visual appealing design.. in general i think it would need a automagic system to parse the libraries and create components for them. what do you think about this? would be a PR including some simple beginner friendly visual editor be an option? |
Hi @s-light ! Have you checked https://make.playpiper.com/ before? |
no i did not tried this.. just also found so to integrate blockly should be possible.. after more research on flow-based UIs i think there is no easy fitting framework/library out there.. so for now i thin blockly is the only option. and found a good starting point for this: |
i extracted this in its own featurerequest |
This issue will mostly serve as a thread that other can contribute to with some ideas for future functionality with the CircuitPython Code Editor. Here's an initial list I came up with based on taking a look at https://python.microbit.org/v/beta:
Feel free to contribute your own ideas.
The text was updated successfully, but these errors were encountered: