davidphilipbarr / popcorn

36 key corne thing but with more stagger.
58 stars 3 forks source link

Does a QMK layout exist? #3

Open sommerper opened 1 year ago

sommerper commented 1 year ago

Hi!

I'm having some trouble getting this keyboard to work with QMK. Or is there an existing keyboard that I can clone and work from?

Thanks a bunch for a cool PCB!

davidphilipbarr commented 1 year ago

Hi, I'm glad you like popcorn, my only regret is not calling it popcorne. Herein is the answer! it should use the same qmk as a 36 key corne.

If it doesn't, I can drag one up from the depths for you!

cheers

David

sommerper commented 1 year ago

I tried using something like this where I would basically leave the outer keys untouched and I it worked great. So thanks for that!

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  [BSE] = LAYOUT_split_3x6_3(
  //  |-----------------------------------------------|                    |-----------------------------------------------|
  //  |       |   q   |   w   |   e   |   r   |   t   |                    |   y   |   u   |   i   |   o   |   p   |       |
  //  |-------+-------+-------+-------+-------+-------|                    |-------+-------+-------+-------+-------+-------|
  //  |       |   a   |   s   |   d   |   f   |   g   |                    |   h   |   j   |   k   |   l   |   '   |       |
  //  |-------+-------+-------+-------+-------+-------|                    |-------+-------+-------+-------+-------+-------|
  //  |       |   z   |   x   |   c   |   v   |   b   |                    |   n   |   m   |   ,   |   .   |   /   |       |
  //  |-------+-------+-------+-------+-------+-------+-------      -------+-------+-------+-------+-------+-------+-------|
  //                                  |  esc  |  spc  |  tab  |    |  ent  |  bsp  |  del  |
  //                          

But eventually I'd like to convert the layout to Vial and the empty keys don't look so good. So I wanted to try something like this:

const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
  [BSE] = LAYOUT_split_3x5_3(
  //  |---------------------------------------|                    |---------------------------------------|
  //  |   q   |   w   |   e   |   r   |   t   |                    |   y   |   u   |   i   |   o   |   p   |
  //  |-------+-------+-------+-------+-------|                    |-------+-------+-------+-------+-------|
  //  |   a   |   s   |   d   |   f   |   g   |                    |   h   |   j   |   k   |   l   |   '   |
  //  |-------+-------+-------+-------+-------|                    |-------+-------+-------+-------+-------|
  //  |   z   |   x   |   c   |   v   |   b   |                    |   n   |   m   |   ,   |   .   |   /   |
  //  |-------+-------+-------+-------+-------+-------      -------|-------+-------+-------+-------+-------|
  //                          |  esc  |  spc  |  tab  |    |  ent  |  bsp  |  del  |
  //             
  //

I just can't figure out how to set the columns to 5 without breaking the compilation.