Skip to content

Commit

Permalink
Add Sony NEWS editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tmk committed Nov 2, 2023
1 parent 092c14d commit f3b51fb
Show file tree
Hide file tree
Showing 4 changed files with 281 additions and 0 deletions.
6 changes: 6 additions & 0 deletions editor/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,12 @@ <h2>Online Keymap Editor for TMK products</h2>
<ul>
<li>TMK Converter(ATmega32U2): [ <a href="unimap/?archimedes_usb">Archimedes Keyboard</a> ]
</ul>

<li><a id="news_usb" href="#news_usb"></a>NEWS-USB Converter <font size="1">[ <a href="https://geekhack.org/index.php?topic=25759.0">info</a> | <a href="https://github.com/tmk/tmk_keyboard/tree/master/converter/news_usb">code</a> | <a href="https://geekhack.org/index.php?topic=72052.0">buy</a> ]</font>
<ul>
<li>TMK Converter(ATmega32U2): [ <a href="unimap/?news_usb_411">NWP-411A</a> ]
<li>TMK Converter(ATmega32U2): [ <a href="unimap/?news_usb_5461">NWP-5461</a> ]
</ul>
</ul>


Expand Down
15 changes: 15 additions & 0 deletions editor/unimap/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -311,5 +311,20 @@ CONFIG = {
firmware_format: "ihex",
layout: "layout-archimedes.html",
},
/*
* Sony NEWS
*/
news_usb_411: {
desc: "NEWS-USB Converter(ATmega32U2) NWP-411A",
firmware_url: "https://raw.githubusercontent.com/tmk/tmk_keyboard/master/converter/news_usb/binary/news_usb_unimap.hex",
firmware_format: "ihex",
layout: "layout-news_411.html",
},
news_usb_5461: {
desc: "NEWS-USB Converter(ATmega32U2) NWP-5461",
firmware_url: "https://raw.githubusercontent.com/tmk/tmk_keyboard/master/converter/news_usb/binary/news_usb_unimap.hex",
firmware_format: "ihex",
layout: "layout-news_5461.html",
},
},
};
122 changes: 122 additions & 0 deletions editor/unimap/layout-news_411.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<div class='keyboard-row'>
<div class="key spc200"></div>
<div id="key-3a" class="key btn125" tabindex="1">F1</div>
<div id="key-3b" class="key btn125" tabindex="1">F2</div>
<div id="key-3c" class="key btn125" tabindex="1">F3</div>
<div id="key-3d" class="key btn125" tabindex="1">F4</div>
<div id="key-3e" class="key btn125" tabindex="1">F5</div>
<div class="key spc050"></div>
<div id="key-3f" class="key btn125" tabindex="1">F6</div>
<div id="key-40" class="key btn125" tabindex="1">F7</div>
<div id="key-41" class="key btn125" tabindex="1">F8</div>
<div id="key-42" class="key btn125" tabindex="1">F9</div>
<div id="key-43" class="key btn125" tabindex="1">F10</div>
</div>

<div class='keyboard-row' style="height: 25px; display: block">
</div>

<div class='keyboard-row'>
<div id="key-29" class="key" tabindex="1">Esc</div>
<div id="key-1e" class="key" tabindex="1">1</div>
<div id="key-1f" class="key" tabindex="1">2</div>
<div id="key-20" class="key" tabindex="1">3</div>
<div id="key-21" class="key" tabindex="1">4</div>
<div id="key-22" class="key" tabindex="1">5</div>
<div id="key-23" class="key" tabindex="1">6</div>
<div id="key-24" class="key" tabindex="1">7</div>
<div id="key-25" class="key" tabindex="1">8</div>
<div id="key-26" class="key" tabindex="1">9</div>
<div id="key-27" class="key" tabindex="1">0</div>
<div id="key-2d" class="key" tabindex="1">-</div>
<div id="key-2e" class="key" tabindex="1">=</div>
<div id="key-74" class="key" tabindex="1">JisYen</div>
<div id="key-2a" class="key btn150" tabindex="1">BSpc</div>
<div class="key spc050"></div>
<div id="key-5f" class="key" tabindex="7">KP7</div>
<div id="key-60" class="key" tabindex="7">KP8</div>
<div id="key-61" class="key" tabindex="7">KP9</div>
<div id="key-56" class="key" tabindex="7">KP-</div>
</div>

<div class='keyboard-row'>
<div id="key-2b" class="key btn150" tabindex="2">Tab</div>
<div id="key-14" class="key" tabindex="2">Q</div>
<div id="key-1a" class="key" tabindex="2">W</div>
<div id="key-08" class="key" tabindex="2">E</div>
<div id="key-15" class="key" tabindex="2">R</div>
<div id="key-17" class="key" tabindex="2">T</div>
<div id="key-1c" class="key" tabindex="2">Y</div>
<div id="key-18" class="key" tabindex="2">U</div>
<div id="key-0c" class="key" tabindex="2">I</div>
<div id="key-12" class="key" tabindex="2">O</div>
<div id="key-13" class="key" tabindex="2">P</div>
<div id="key-2f" class="key" tabindex="2">[</div>
<div id="key-30" class="key" tabindex="2">]</div>
<div id="key-4c" class="key" tabindex="2">Delete</div>
<div id="key-28" class="key" tabindex="3">Enter</div>
<div class="key spc050"></div>
<div id="key-5c" class="key" tabindex="7">KP4</div>
<div id="key-5d" class="key" tabindex="7">KP5</div>
<div id="key-5e" class="key" tabindex="7">KP6</div>
<div id="key-57" class="key" tabindex="7">KP+</div>
</div>

<div class='keyboard-row'>
<div id="key-78" class="key btn175" tabindex="3">Caps</div>
<div id="key-04" class="key" tabindex="3">A</div>
<div id="key-16" class="key" tabindex="3">S</div>
<div id="key-07" class="key" tabindex="3">D</div>
<div id="key-09" class="key" tabindex="3">F</div>
<div id="key-0a" class="key" tabindex="3">G</div>
<div id="key-0b" class="key" tabindex="3">H</div>
<div id="key-0d" class="key" tabindex="3">J</div>
<div id="key-0e" class="key" tabindex="3">K</div>
<div id="key-0f" class="key" tabindex="3">L</div>
<div id="key-33" class="key" tabindex="3">;</div>
<div id="key-34" class="key" tabindex="3">'</div>
<div id="key-32" class="key" tabindex="3">Iso#</div>
<div id="key-28" class="key btn175" tabindex="3">Enter</div>
<div class="key spc050"></div>
<div id="key-59" class="key" tabindex="7">KP1</div>
<div id="key-5a" class="key" tabindex="7">KP2</div>
<div id="key-5b" class="key" tabindex="7">KP3</div>
<div id="key-66" class="key" tabindex="7">KP,</div>
</div>

<div class='keyboard-row'>
<div id="key-79" class="key btn225" tabindex="4">Shift</div>
<div id="key-1d" class="key" tabindex="4">Z</div>
<div id="key-1b" class="key" tabindex="4">X</div>
<div id="key-06" class="key" tabindex="4">C</div>
<div id="key-19" class="key" tabindex="4">V</div>
<div id="key-05" class="key" tabindex="4">B</div>
<div id="key-11" class="key" tabindex="4">N</div>
<div id="key-10" class="key" tabindex="4">M</div>
<div id="key-36" class="key" tabindex="4">,</div>
<div id="key-37" class="key" tabindex="4">.</div>
<div id="key-38" class="key" tabindex="4">/</div>
<div id="key-75" class="key" tabindex="4">JisRo</div>
<div id="key-7d" class="key btn225" tabindex="4">Shift</div>
<div class="key spc050"></div>
<div id="key-62" class="key" tabindex="7">KP0</div>
<div id="key-52" class="key" tabindex="7">Up</div>
<div id="key-63" class="key" tabindex="7">KP.</div>
<div id="key-58" class="key" tabindex="7">KPEnt</div>
</div>

<div class='keyboard-row'>
<div id="key-7a" class="key btn175" tabindex="5">LAlt</div>
<div id="key-39" class="key" tabindex="5">Caps</div>
<div id="key-77" class="key btn150" tabindex="5">MuHenkan</div>
<div id="key-2c" class="key btn600" tabindex="5">Space</div>
<div id="key-76" class="key btn150" tabindex="5">Henkan</div>
<div id="key-65" class="key" tabindex="5">App</div>
<div id="key-00" class="key" tabindex="5">Kana</div>
<div id="key-7c" class="key btn175" tabindex="5">RCtl</div>
<div class="key spc050"></div>
<div id="key-50" class="key" tabindex="7">Left</div>
<div id="key-51" class="key" tabindex="7">Down</div>
<div id="key-4f" class="key" tabindex="7">Right</div>
<div id="key-58" class="key" tabindex="7">KPEnt</div>
</div>
138 changes: 138 additions & 0 deletions editor/unimap/layout-news_5461.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,138 @@
<div class='keyboard-row'>
<div id="key-03" class="key" style="margin: 0 0 25px 0;" tabindex="1">Volume Mute</div>
<div class="key spc100"></div>
<div id="key-3a" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F1</div>
<div id="key-3b" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F2</div>
<div id="key-3c" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F3</div>
<div id="key-3d" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F4</div>
<div id="key-3e" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F5</div>
<div class="key spc025"></div>
<div id="key-3f" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F6</div>
<div id="key-40" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F7</div>
<div id="key-41" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F8</div>
<div id="key-42" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F9</div>
<div id="key-43" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F10</div>
<div class="key spc025"></div>
<div id="key-44" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F11</div>
<div id="key-45" class="key btn125" style="margin: 0 0 25px 0;" tabindex="1">F12</div>

<div class="key spc050"></div>
<div id="key-55" class="key" tabindex="7">KP*</div>
<div id="key-54" class="key" tabindex="7">KP/</div>
<div id="key-57" class="key" tabindex="7">KP+</div>
</div>

<div class='keyboard-row'>
<div id="key-29" class="key" tabindex="1">Esc</div>
<div id="key-1e" class="key" tabindex="1">1</div>
<div id="key-1f" class="key" tabindex="1">2</div>
<div id="key-20" class="key" tabindex="1">3</div>
<div id="key-21" class="key" tabindex="1">4</div>
<div id="key-22" class="key" tabindex="1">5</div>
<div id="key-23" class="key" tabindex="1">6</div>
<div id="key-24" class="key" tabindex="1">7</div>
<div id="key-25" class="key" tabindex="1">8</div>
<div id="key-26" class="key" tabindex="1">9</div>
<div id="key-27" class="key" tabindex="1">0</div>
<div id="key-2d" class="key" tabindex="1">-</div>
<div id="key-2e" class="key" tabindex="1">=</div>
<div id="key-74" class="key" tabindex="1">JisYen</div>
<div id="key-2a" class="key btn150" tabindex="1">BSpc</div>
<div class="key spc025"></div>
<div id="key-4a" class="key" tabindex="6">Home</div>
<div class="key spc025"></div>
<div id="key-5f" class="key" tabindex="7">KP7</div>
<div id="key-60" class="key" tabindex="7">KP8</div>
<div id="key-61" class="key" tabindex="7">KP9</div>
<div id="key-56" class="key" tabindex="7">KP-</div>
</div>

<div class='keyboard-row'>
<div id="key-2b" class="key btn150" tabindex="2">Tab</div>
<div id="key-14" class="key" tabindex="2">Q</div>
<div id="key-1a" class="key" tabindex="2">W</div>
<div id="key-08" class="key" tabindex="2">E</div>
<div id="key-15" class="key" tabindex="2">R</div>
<div id="key-17" class="key" tabindex="2">T</div>
<div id="key-1c" class="key" tabindex="2">Y</div>
<div id="key-18" class="key" tabindex="2">U</div>
<div id="key-0c" class="key" tabindex="2">I</div>
<div id="key-12" class="key" tabindex="2">O</div>
<div id="key-13" class="key" tabindex="2">P</div>
<div id="key-2f" class="key" tabindex="2">[</div>
<div id="key-30" class="key" tabindex="2">]</div>
<div id="key-4c" class="key" tabindex="2">Delete</div>
<div id="key-28" class="key" tabindex="3">Enter</div>
<div class="key spc025"></div>
<div id="key-49" class="key" tabindex="6">Insert</div>
<div class="key spc025"></div>
<div id="key-5c" class="key" tabindex="7">KP4</div>
<div id="key-5d" class="key" tabindex="7">KP5</div>
<div id="key-5e" class="key" tabindex="7">KP6</div>
<div id="key-66" class="key" tabindex="7">KP,</div>
</div>

<div class='keyboard-row'>
<div id="key-78" class="key btn175" tabindex="3">Caps</div>
<div id="key-04" class="key" tabindex="3">A</div>
<div id="key-16" class="key" tabindex="3">S</div>
<div id="key-07" class="key" tabindex="3">D</div>
<div id="key-09" class="key" tabindex="3">F</div>
<div id="key-0a" class="key" tabindex="3">G</div>
<div id="key-0b" class="key" tabindex="3">H</div>
<div id="key-0d" class="key" tabindex="3">J</div>
<div id="key-0e" class="key" tabindex="3">K</div>
<div id="key-0f" class="key" tabindex="3">L</div>
<div id="key-33" class="key" tabindex="3">;</div>
<div id="key-34" class="key" tabindex="3">'</div>
<div id="key-32" class="key" tabindex="3">Iso#</div>
<div id="key-28" class="key btn175" tabindex="3">Enter</div>
<div class="key spc025"></div>
<div id="key-4d" class="key" tabindex="6">End</div>
<div class="key spc025"></div>
<div id="key-59" class="key" tabindex="7">KP1</div>
<div id="key-5a" class="key" tabindex="7">KP2</div>
<div id="key-5b" class="key" tabindex="7">KP3</div>
<div id="key-58" class="key" tabindex="7">KPEnt</div>
</div>

<div class='keyboard-row'>
<div id="key-79" class="key btn225" tabindex="4">Shift</div>
<div id="key-1d" class="key" tabindex="4">Z</div>
<div id="key-1b" class="key" tabindex="4">X</div>
<div id="key-06" class="key" tabindex="4">C</div>
<div id="key-19" class="key" tabindex="4">V</div>
<div id="key-05" class="key" tabindex="4">B</div>
<div id="key-11" class="key" tabindex="4">N</div>
<div id="key-10" class="key" tabindex="4">M</div>
<div id="key-36" class="key" tabindex="4">,</div>
<div id="key-37" class="key" tabindex="4">.</div>
<div id="key-38" class="key" tabindex="4">/</div>
<div id="key-75" class="key" tabindex="4">JisRo</div>
<div id="key-7d" class="key btn225" tabindex="4">Shift</div>
<div class="key spc025"></div>
<div id="key-4b" class="key" tabindex="6">Page Up</div>
<div class="key spc025"></div>
<div id="key-62" class="key" tabindex="7">KP0</div>
<div id="key-63" class="key" tabindex="7">KP.</div>
<div id="key-52" class="key" tabindex="7">Up</div>
<div id="key-58" class="key" tabindex="7">KPEnt</div>
</div>

<div class='keyboard-row'>
<div id="key-7a" class="key btn175" tabindex="5">LAlt</div>
<div id="key-39" class="key" tabindex="5">Caps</div>
<div id="key-77" class="key btn150" tabindex="5">MuHenkan</div>
<div id="key-2c" class="key btn600" tabindex="5">Space</div>
<div id="key-76" class="key btn150" tabindex="5">Henkan</div>
<div id="key-65" class="key" tabindex="5">App</div>
<div id="key-00" class="key" tabindex="5">Kana</div>
<div id="key-7c" class="key btn175" tabindex="5">RCtl</div>
<div class="key spc025"></div>
<div id="key-4e" class="key" tabindex="6">Page Down</div>
<div class="key spc025"></div>
<div id="key-67" class="key" tabindex="7">KP=</div>
<div id="key-50" class="key" tabindex="7">Left</div>
<div id="key-51" class="key" tabindex="7">Down</div>
<div id="key-4f" class="key" tabindex="7">Right</div>
</div>

0 comments on commit f3b51fb

Please sign in to comment.