dotcypress / scrolly

Rotary encoder as scroll wheel

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rotary encoder as scroll wheel

Wiring diagram

┌─────────────────┐          ┌────────────────┐
│     RP2040      │          │     Rotary     │
│                 │          │     Encoder    │
│          GPIO8  ├─────────►│ A              │
│                 │          │                │
│          GPIO9  ├─────────►│ GND            │
│                 │          │                │
│         GPIO10  ├─────────►│ B              │
│                 │          │                │
└─────────────────┘          └────────────────┘

Installation

  1. Download latest firmware build from Releases page
  2. Hold the BOOTSEL button while connecting your board to the computer
  3. Copy firmware file downloaded earlier to the RPi-RP2 disk
  4. Enjoy

Building firmware

  1. Install rustup by following the instructions at https://rustup.rs
  2. Install Cortex-M0, M0+, and M1 (ARMv6-M architecture) target: rustup target add thumbv6m-none-eabi
  3. Install LLVM tools: rustup component add llvm-tools-preview
  4. Install cargo-binutils: cargo install cargo-binutils (Note: on some Linux distros (e.g. Ubuntu) you may need to install the packages build-essential, gcc-arm-none-eabi, libssl-dev and pkg-config prior to installing cargo-binutils)
  5. Install elf2uf2: cargo install elf2uf2-rs
  6. Clone this repo: git clone git@github.com:dotcypress/scrolly.git && cd scrolly
  7. Hold the BOOTSEL button while connecting your board to the computer
  8. Flash microcontroller: cargo run --release

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Rotary encoder as scroll wheel

License:Apache License 2.0


Languages

Language:Rust 100.0%