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

Some questions #38

Open
Raj2032 opened this issue Jul 31, 2022 · 8 comments
Open

Some questions #38

Raj2032 opened this issue Jul 31, 2022 · 8 comments

Comments

@Raj2032
Copy link

Raj2032 commented Jul 31, 2022

Hi I wanted to ask some questions:

This library is based on GPIOZero library.

This is from the README.md. So like is this crate using gpiozero as the backend or is rust_gpiozero a complete rewrite and it uses its own thing?

Does this crate support all the devices as gpiozero supports?

Also is this project still continuing?

@dcroote
Copy link
Collaborator

dcroote commented Jul 31, 2022

This is from the README.md. So like is this crate using gpiozero as the backend or is rust_gpiozero a complete rewrite and it uses its own thing?

This rust crate is inspired by the python GPIOZero package. It's only dependency is rppal for peripheral access.

Does this crate support all the devices as gpiozero supports?

A number of common devices are currently supported, but not everything. Have a look at the examples directory for some ideas.

Also is this project still continuing?

Yes.

@Raj2032
Copy link
Author

Raj2032 commented Aug 1, 2022

is this using embedded-hal by any chance?

@dcroote
Copy link
Collaborator

dcroote commented Aug 1, 2022

is this using embedded-hal by any chance?

Not currently, though support for it is a planned feature: https://github.com/rahul-thakoor/rust_gpiozero#features

@Raj2032
Copy link
Author

Raj2032 commented Aug 2, 2022

@dcroote By bringing in embedded-hal, what benefit does it bring to gpio-zero?

@dcroote
Copy link
Collaborator

dcroote commented Aug 2, 2022

The Embedded Rust Book chapter on Portability provides a nice overview and arguments for it.

@Raj2032
Copy link
Author

Raj2032 commented Aug 2, 2022

@dcroote This wouldn't affect the api/syntax of rust_gpiozero?

@dcroote
Copy link
Collaborator

dcroote commented Aug 6, 2022

Possibly, but without having spent more time assessing how it could be supported I cannot say either way.

@Raj2032
Copy link
Author

Raj2032 commented Aug 6, 2022

@dcroote Ah right mate.

But if embedded-hal was supported, then would it also be able to support Arduino as mentioned over here

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

No branches or pull requests

2 participants