# XS40
#### 《放码过来》视频介绍
https://www.bilibili.com/video/BV1cA411v7i5
#### 介绍
80键分体键盘,采用非常便宜的单片机和USB HID接口芯片。目的就是打造一款低成本的机械键盘DIY方案。
hard 文件夹内是键盘的硬件设计文档,PCB设计使用的是KiCad开源软件。
soft 文件夹内是键盘的软件实现。逻辑部分用的是新唐的N76E003单片机。USB接口使用的是 CH9328 USB HID 芯片。
目前的键位设计可以通过 http://www.keyboard-layout-editor.com/#/ 站点查看。
打开上述网页点击“Raw data”选项卡,粘贴一下内容即可渲染出键位设计。如有对键位设计有建议的可以在评论区留言,谢谢!
```
[{c:"#6495ed"},"Esc",{c:"#cccccc"},"!\n1","@\n2","#\n3","$\n4","%\n5",{c:"#ff4500"},"~\n`","*",{x:1},"_","+",{c:"#cccccc"},"^\n6","&\n7","*\n8","(\n9",")\n0",{c:"#bb0000"},"Bs"],
[{c:"#444444"},"Tab",{c:"#cccccc"},"Q","W","E","R","T",{c:"#444444"},"{\n[","}\n]",{x:1},"+\n=","|\n\\",{c:"#cccccc"},"Y","U","I","O","P",{c:"#444444"},"del"],
[{c:"#cccccc"},"Caps Lock","A","S","D","F","G","(",{c:"#444444"},")",{x:1},":\n;",{c:"#cccccc"},"<\n,","H","J","K","L","_\n-","Enter"],
[{c:"#ff4500"},"Shift",{c:"#6495ed"},"@",{c:"#cccccc"},"Z","X","C","V","&",{c:"#444444"},"#",{x:1},"\"\n'",{c:"#cccccc"},">\n.","B","N","M","?\n/",{c:"#bb0000"},"↑",{c:"#ff4500"},"RShift"],
[{c:"#6495ed"},"Fn0","Win","Alt",{c:"#ff4500"},"Shift",{c:"#cccccc"},"Space",{c:"#444444"},"Ctrl","~","!",{x:1},"%","?","Ctrl",{c:"#cccccc"},"Space",{c:"#ff4500"},"Fn0",{c:"#bb0000"},"←","↓","→"],
[{y:0.5,c:"#6495ed"},"F0",{c:"#cccccc"},"F1","F2","F3","F4","F5",{c:"#ff4500"},"Num Lock","",{x:1},"","",{c:"#cccccc"},"F6","F7","F8","F9","F10",{c:"#bb0000"},""],
[{c:"#444444"},"select",{c:"#cccccc"},"F11","F12","mail",{a:7},"","",{c:"#444444",a:4},"","",{x:1},"","",{c:"#cccccc"},"7\nHome",{a:4},"8\n↑","|",{a:4},"/","",{c:"#444444"},""],
[{c:"#cccccc"},"prev","play","next","stop",{a:7},"","",{a:4},"",{c:"#444444"},"",{x:1},"",{c:"#cccccc"},"","4\n←",{a:4},"\"",{a:4},":",{a:4},"*","",""],
[{c:"#ff4500",a:4},"vol dn",{c:"#6495ed"},"mute",{c:"#cccccc"},"vol up","app",{a:7},"","",{a:4},"",{c:"#444444"},"",{x:1},"",{c:"#cccccc"},"","1\nEnd","{","}","-",{c:"#bb0000",a:4},"",{c:"#ff4500"},""],
[{c:"#6495ed"},"Fn0","Fn2","Fn4",{c:"#ff4500",a:7},"",{c:"#cccccc"},"",{c:"#444444"},"",{a:4},"","",{x:1},"","","PEnter",{c:"#cccccc"},"0\nIns",{c:"#ff4500"},"Fn0",{c:"#bb0000"},"+","",""]
```
#### 展示
![输入图片说明](https://images.gitee.com/uploads/images/2020/0501/122150_8fecb6c1_297378.jpeg "b146eeb9497ea70faab857080b56009.jpg")
![输入图片说明](https://images.gitee.com/uploads/images/2020/0501/122255_5643e473_297378.jpeg "74a61ceb1c933b0123dbee454cc0db6.jpg")
![输入图片说明](https://images.gitee.com/uploads/images/2020/0501/122314_0d19bd51_297378.jpeg "43c635f29237a9f031e426376ea0fd5.jpg")
![输入图片说明](https://images.gitee.com/uploads/images/2020/0501/122328_87f74f31_297378.jpeg "a8b779794b4cff2eecfce481d46be4e.jpg")