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

Additional services required - including GPIO #12

Open
whaleygeek opened this issue Aug 3, 2017 · 1 comment
Open

Additional services required - including GPIO #12

whaleygeek opened this issue Aug 3, 2017 · 1 comment

Comments

@whaleygeek
Copy link
Owner

I might add these in before final book release.
They are not needed for the book, but could form part of a useful extension when users look up the standard microbit MicroPython API's

digital_read
digital_write
analog_read
analog_write

@whaleygeek
Copy link
Owner Author

whaleygeek commented Aug 28, 2017

Could be solved with a generic REPL generator?

This would mean that dir(microbit) would not be representative, and errors in naming method calls or parameters would generate runtime REPL errors, and some constants might be missing. But as a fallback, calling microbit.xx(y, z, a=1, b=2) could use __getattr__ to dynamically create a command string that it sends to the raw REPL.

It might be a special mode we enable to allow others to use existing micro:bit services, before they are written as static methods (thus fostering faster innovation in the communities).

@whaleygeek whaleygeek changed the title Additional services required Additional services required - including GPIO Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant