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

Filter by category #48

Closed
tdittr opened this issue Sep 13, 2024 · 1 comment
Closed

Filter by category #48

tdittr opened this issue Sep 13, 2024 · 1 comment

Comments

@tdittr
Copy link
Collaborator

tdittr commented Sep 13, 2024

The back-end already adds a categories field and a category index to the JSON:

      "categories": ["Sensor::Accelerometer"],
    "category": {
      "Analog::ADC": [136],
      "Analog::DAC": [38],
      "Sensor::PowerMeter": [136],
      "Sensor::Accelerometer": [12, 114],
      "Sensor::Magnetometer": [114],
      "IoExpander::PWM": [173]
    },

Since this is the easiest route to filter drivers this should be easily accessible. It could look like this:
from lib.rs:
image

Mouser:
image

@tdittr
Copy link
Collaborator Author

tdittr commented Nov 1, 2024

Not perfect, but works since #78

@tdittr tdittr closed this as completed Nov 1, 2024
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

1 participant