Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: 5x4 Teensy macropad code

  1. #1
    Junior Member
    Join Date
    Nov 2017
    Posts
    5

    5x4 Teensy macropad code

    Ok Im a first time user of these teensy boards so i designed a pcb board for cherry switches and ha them set up as a 5x4 and had the rows and everything setup but now i get to the code and i dont know where to even start with the code. everything i find online doesnt really match how i set my board up. Can i get some help.

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,819
    Posting a schematic or photo of your custom PCB would be a good start.

    Normal method is to wire as a matrix but if your PCB is already done may be a bit late for that
    https://www.pjrc.com/teensy/td_libs_Keypad.html

    Output of that would then get feed into a varient of the keyboard demo code.

  3. #3
    Junior Member
    Join Date
    Nov 2017
    Posts
    5
    sorry for the late reply but give me a bit to figure out how to upload the file

  4. #4
    Junior Member
    Join Date
    Nov 2017
    Posts
    5
    Macropad v1.0 Gerber.zip
    here is the gerber files it wont let me attach the sch file

  5. #5
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,819
    What program did you do the PCB in? It will matter to usefully see the board rather than making one. Simpler option is to screen capture and post as JPG given this should not be a multilayered monstronsity. In the mean time, did you get the keyboard examples working?

  6. #6
    Junior Member
    Join Date
    Nov 2017
    Posts
    5
    i have not had time to play with any of it but the link you sent seems to be what i was looking for and i didn't even think about screen capturing it but i will. It was make in kicad.

  7. #7
    Junior Member
    Join Date
    Nov 2017
    Posts
    5
    Ok i have found a mistake i have made i guess i pinned all of the buttons to the analog side instead of the digital so Im working on the next version of this and hoping it will work then.

  8. #8
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,819
    The analog pins 14-23 can also be used for digital IO so you are probably fine. You certainly do want to confirm you can make code work before starting a new PCB, you may find there are other bits you want to add as well.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •