-
Notifications
You must be signed in to change notification settings - Fork 3
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
riot: Add SAUL bindings #1
base: add_riot_port
Are you sure you want to change the base?
Conversation
ports/riot/riot_saul.c
Outdated
/// and the driver implementation. A NotImplemented exception will be raised if | ||
/// the underlying device driver does not support the call. | ||
/// | ||
/// A succesful read from a device will return a list of floating point numbers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/// A succesful read from a device will return a list of floating point numbers | |
/// A successful read from a device will return a list of floating point numbers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Looks like I managed to break the bindings with some last minute changes to this PR. |
Should work again. the from riot import saul
reg = saul.get_registry()
for device in reg:
print("{}: {}".format(device, device.read())) gives:
(On a samr21-xpro) |
ping @kaspar030 |
riot: add unique_id() support based on cpuid
This PR adds SAUL bindings for micropython. See the included docs in
ports/riot/riot_saul.c
for usage instructions.Future work could consist of bindings for SAUL devices written as python modules.