{"id":699,"date":"2017-12-03T20:45:10","date_gmt":"2017-12-03T10:15:10","guid":{"rendered":"http:\/\/parablog-wordpress.dockerbox.rei.moe\/?p=699"},"modified":"2017-12-03T21:00:09","modified_gmt":"2017-12-03T10:30:09","slug":"programming-my-gherkin","status":"publish","type":"post","link":"https:\/\/blog.lewys.eu\/?p=699","title":{"rendered":"Programming my Gherkin"},"content":{"rendered":"<p>Over the weekend at the Sydney Mechanical Keyboard Meetup, I got my hands on some DSA keycaps, The intent is for them to replace my dodgy sticker based ones on the Neutrino, but for now I decided to put them on the Gherkin to see how I fair with it having DSA keycaps on it!&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>I forgot the keymap I had programmed so it is easier to just remake a new keymap imho.<\/p>\n<p>&nbsp;<\/p>\n<p>Ill document it all here for future reference to stop myself forgetting next time \ud83d\ude42<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>So as usual, we will use&nbsp;<a href=\"http:\/\/kbfirmware.com\">http:\/\/kbfirmware.com<\/a>&nbsp;&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Now if you havent seen the gherkin its a 30%? 40%? keyboard, that has a 10*3 matrix on it.<\/p>\n<p>&nbsp;<\/p>\n<p>More info here:&nbsp;<a href=\"http:\/\/www.40percent.club\/2016\/11\/gherkin.html\">http:\/\/www.40percent.club\/2016\/11\/gherkin.html<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now we&#8217;re pretty lucky, on <a href=\"http:\/\/www.40percent.club\/2017\/03\/low-effort-firmware.html\">this page<\/a>&nbsp;we have links to a json file for the firmware builder ! Lets use <a href=\"https:\/\/github.com\/di0ib\/Misc\/blob\/master\/basic.json\">this<\/a>!<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/utpv705fltyy.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-700\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/utpv705fltyy-300x169.png\" alt=\"\" width=\"300\" height=\"169\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/utpv705fltyy-300x169.png 300w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/utpv705fltyy-768x432.png 768w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/utpv705fltyy-1024x576.png 1024w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/utpv705fltyy.png 1920w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>The wiring is pretty funky if you ask me, its&nbsp; very confusing. So i&#8217;ll just assume that it&#8217;s correct..<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_20-42-18.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-701\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_20-42-18.png\" alt=\"\" width=\"799\" height=\"901\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_20-42-18.png 799w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_20-42-18-266x300.png 266w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_20-42-18-768x866.png 768w\" sizes=\"auto, (max-width: 799px) 100vw, 799px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Now mine has LEDs so for those, Ill connect pin D3 on the header to the DIN on the WS2812 strip.<\/p>\n<p>&nbsp;<\/p>\n<p>Using the handy pictures <a href=\"http:\/\/www.40percent.club\/2016\/12\/gherkin-assembly.html\">over here<\/a>&nbsp;we can see the pinout of that header.<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Expansion-Header.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-702\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Expansion-Header.jpg\" alt=\"\" width=\"450\" height=\"338\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Expansion-Header.jpg 450w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Expansion-Header-300x225.jpg 300w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>I have 11 LEDs so we will set that in the firmware builder and set it to D3 pin, Don&#8217;t forget to disable the other LEDs we aren&#8217;t using such as caps lock and num lock.<\/p>\n<p>So ive messed with the layout and happy with this I think for now:<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-28.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-703\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-28.png\" alt=\"\" width=\"631\" height=\"210\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-28.png 631w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-28-300x100.png 300w\" sizes=\"auto, (max-width: 631px) 100vw, 631px\" \/><\/a> <a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-37.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-704\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-37.png\" alt=\"\" width=\"634\" height=\"217\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-37.png 634w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/Keyboard_Firmware_Builder_-_Google_Chrome_2017-12-03_21-03-37-300x103.png 300w\" sizes=\"auto, (max-width: 634px) 100vw, 634px\" \/><\/a><\/p>\n<p>Now that I have configured everything, I have a <a href=\"https:\/\/www.lewys.eu\/downloads\/keyboards\/gherkin.json\">custom json file<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Lets download the <a href=\"https:\/\/www.lewys.eu\/downloads\/keyboards\/gherkin.hex\">hex file<\/a> and flash it !<\/p>\n<p>&nbsp;<\/p>\n<p>and we have success !<\/p>\n<p>&nbsp;<\/p>\n<p>Everything works as intended \ud83d\ude42<\/p>\n<p><a href=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/keyboard-layout.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-706\" src=\"http:\/\/172.16.0.6:8683\/wp-content\/uploads\/2017\/12\/keyboard-layout.jpg\" alt=\"\" width=\"560\" height=\"223\" srcset=\"https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/keyboard-layout.jpg 560w, https:\/\/blog.lewys.eu\/wp-content\/uploads\/2017\/12\/keyboard-layout-300x119.jpg 300w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/a><\/p>\n<p>Thanks for reading !<\/p>\n<p>&nbsp;<\/p>\n<p>edit: I changed some keys and added an esc key on layer 1 of N key thats all<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Over the weekend at the Sydney Mechanical Keyboard Meetup, I got my hands on some DSA keycaps, The intent is for them to replace my dodgy sticker based ones on the Neutrino, but for now I decided to put them on the Gherkin to see how I fair with it having DSA keycaps on it!&nbsp; &hellip; <a href=\"https:\/\/blog.lewys.eu\/?p=699\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Programming my Gherkin<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,33,27,22],"tags":[],"class_list":["post-699","post","type-post","status-publish","format-standard","hentry","category-educational","category-mechanical-keyboards","category-programming","category-reference"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=699"}],"version-history":[{"count":3,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/699\/revisions"}],"predecessor-version":[{"id":708,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=\/wp\/v2\/posts\/699\/revisions\/708"}],"wp:attachment":[{"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=699"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=699"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.lewys.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}