Code Monkey home page Code Monkey logo

adafruit-seesaw's People

Contributors

alexeden avatar danjl1100 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

adafruit-seesaw's Issues

Add device #5740 "ANO rotary navigation encoder"

Would you accept a PR adding Adafruit product #5740 ("ANO rotary navigation encoder") to the device module?

I just picked up a couple of these ANO rotary navigation encoders, and I'm not finding a Rust crate that will easily interface with it.
On a cursory glance, it looks like this crate (with its seesaw_device! macro) would be a good fit for it.

I'm thinking I'd try reusing the existing EncoderModule logic with the "button" being the center button. And then follow along with Adafruit's CircuitPython example below to add the 4 extra digital inputs for the up/down/left/right buttons:

https://github.com/adafruit/Adafruit_CircuitPython_seesaw/blob/89daaec507fa2f5fa4bd7aa9bedf7e8eae09ac44/examples/seesaw_ano_rotary_simpletest.py#L20-L41

Also, if you have any tips or concerns up front, please let me know!

Edit: I just now saw the Creating Your Own Devices part of the readme... whoops, somehow thought it only supported the devices defined internally.

Feature const_convert no longer available with rust 1.69 nightly

Hi, thanks for building this. I just got a NeoKey1x4, which I'm working on adding to my project.

I'm getting the following error building 0.5.0 (14dc5a):

error[E0635]: unknown feature `const_convert`
 --> src/lib.rs:3:27
  |
3 | #![feature(array_try_map, const_convert, const_trait_impl, generic_const_exprs)]
  |                           ^^^^^^^^^^^^^

error: const `impl` for trait `From` which is not marked with `#[const_trait]`
 --> src/common.rs:9:12
  |
9 | impl const From<HardwareId> for u8 {
  |            ^^^^^^^^^^^^^^^^
  |
  = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
  = note: adding a non-const method body in the future would be a breaking change

error: const `impl` for trait `From` which is not marked with `#[const_trait]`
  --> src/common.rs:36:12
   |
36 | impl const From<Modules> for u8 {
   |            ^^^^^^^^^^^^^
   |
   = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
   = note: adding a non-const method body in the future would be a breaking change

error: const `impl` for trait `From` which is not marked with `#[const_trait]`
   --> src/modules/gpio.rs:152:12
    |
152 | impl const From<PinMode> for u8 {
    |            ^^^^^^^^^^^^^
    |
    = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
    = note: adding a non-const method body in the future would be a breaking change

error: const `impl` for trait `From` which is not marked with `#[const_trait]`
   --> src/modules/gpio.rs:171:12
    |
171 | impl const From<InterruptMode> for u8 {
    |            ^^^^^^^^^^^^^^^^^^^
    |
    = note: marking a trait with `#[const_trait]` ensures all default method bodies are `const`
    = note: adding a non-const method body in the future would be a breaking change

A recent comment on rust-lang/rust#88674 suggests that the const_convert feature has been removed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.