Skip to content
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

Micropython support for Raspberry Pi Simulator #76

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

silbogdan
Copy link
Contributor

Description of the Change

  • MicroPython has been added on the Raspberry Pi Simulator. This enables the options of running code from the console and to program the board using Python.
  • The Raspberry libraries are mocked directly in Python and the files are prepended to the code when running the simulator. The files are retrieved from the server backend.
  • This PR includes GPIO Pins control. The pins are handled directly on the MicroPython emulator and their values are watched using an event emitter that sends the pin array. Whenever a new pin value is written, the simulator updates its components. This makes the simulator react when MicroPython changes.

Benefits

Improvement to the Raspberry Pi Simulator

Possible Drawbacks

Reading names of library files from server might represent a security risk.

Applicable Issues

Format

[ x ] ran npm run electron-format
[ x ] ran npm run browser-format

Author

Signed-off-by: Bogdan Silvășan bogdan.silve@gmail.com

@silbogdan silbogdan changed the title Micropython dev Micropython support for Raspberry Pi Simulator Jul 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant