Giter Site home page Giter Site logo

guruthree / pico-model-m Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 0.0 190 KB

Code for the Pimoroni PGA2040 (a Raspberry Pi RP2040-powered board) to act as a USB keyboard by scanning the membrane of a Model M 122-key keyboard.

CMake 3.57% C++ 86.21% C 10.22%
keyboard usb usb-hid tinyusb raspberry-pi-pico ibm-model-m

pico-model-m's People

Contributors

guruthree avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pico-model-m's Issues

Can I use 3-to-8 demultiplexer to implement 20+8 layout with 24 pins?

First of all, great project! I found an old model M 122-keys and I want to restore it ๐Ÿ˜„

As you mention in README.md, 26 GPIO pins are not enough for driving 20+8 pins.
I looked at .cpp MatrixScanner::scan() and, as far as I understand, you set one column high and the other 7 discharged and floating.

void MatrixScanner::scan() {
uint64_t now;
bool temp;
// loop through each send pin and then check each read pin
for (uint8_t i = 0; i < NUM_ACROSS; i++) {
gpio_set_dir(across[i], GPIO_OUT);
gpio_put(across[i], 1);
sleep_us(30); // delay for changes to GPIO to settle
uint32_t readings = gpio_get_all();
setpininput(across[i]); // so that the send pin floats and won't cause a bus conflict

Can I drive the 8 columns with 4 GPIO + multiplexer? 3 GPIO pins select one of 2^3=8 pins and 1 GPIO drives the selected column. What you think? Can I have your opinion? ๐Ÿ˜„

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.