diff --git a/resources/zh.png b/resources/zh.png new file mode 100644 index 0000000..8914414 Binary files /dev/null and b/resources/zh.png differ diff --git a/src/zh/settings.yaml b/src/zh/settings.yaml index 7efa756..cccc42c 100644 --- a/src/zh/settings.yaml +++ b/src/zh/settings.yaml @@ -1,4 +1,4 @@ -domain: pinout.xyz +domain: zh.pinout.xyz base_url: /pinout/ resource_url: /resources/ url_suffix: diff --git a/src/zh/template/index.md b/src/zh/template/index.md index 75ff3c3..c2806a0 100644 --- a/src/zh/template/index.md +++ b/src/zh/template/index.md @@ -1,39 +1,39 @@ # Pinout! -### The Raspberry Pi GPIO pinout guide. +### 树莓派引脚定义导航 -This GPIO Pinout is an interactive reference to the Raspberry Pi GPIO pins, and a guide to the Raspberry Pi's GPIO interfaces. Pinout also includes [dozens of pinouts for Raspberry Pi add-on boards, HATs and pHATs](/boards). +本站是一个交互式的树莓派 GPIO 引脚定义查询网站,并同时提供各类树莓派 GPIO 接口的介绍。本站同时囊括了[很多种树莓派扩展板、盖板(HAT)、迷你盖板(pHAT)的引脚定义](/boards). -## Support Pinout.xyz +## 支持 Pinout.xyz -If you love Pinout, please help me fund new features and improvements: +如果你喜欢本站,请捐助我们,以便我们继续努力,提供更多功能与改进: -* via GitHub at [GitHub.com/sponsors/gadgetoid](https://github.com/sponsors/gadgetoid) -* via Patreon at [Patreon.com/gadgetoid](https://www.patreon.com/gadgetoid) +* 通过 GitHub [GitHub.com/sponsors/gadgetoid](https://github.com/sponsors/gadgetoid) +* 通过 Patreon [Patreon.com/gadgetoid](https://www.patreon.com/gadgetoid) -Every $1 makes all the difference! Thank you. +一分钱也是爱,感谢! -## pHAT Stack +## 关于迷你盖板(pHAT) -Pinout has teamed up with Pimoroni to create a [prototype board compatibility tool, check it out here!](/phatstack) +本站已与 Pimoroni 合作以创建一个[开发板兼容工具,点击查看!](/phatstack) -## Explore HATs & pHATs +## 探索:盖板与迷你盖板 -[Check out Pinout's board explorer](/boards)! Use it to find the pinout for your Raspberry Pi add-on board, or discover new boards. If you manufacture boards, we'd love to add yours too. [You can contribute to Pinout.xyz at GitHub.com](https://github.com/gadgetoid/Pinout.xyz). +[查看本站的开发板导航页](/boards)!你可以在这里找到树莓派扩展板的引脚定义,或者体验下新板子。如果你做出来了自己的开发板,我们也很乐意把它加在这个页面中。[你可以在 GitHub.com 中向 Pinout.xyz 贡献代码](https://github.com/gadgetoid/Pinout.xyz). -## What do these numbers mean? +## 页面中的数字代表什么意思? -* GPIO - General Purpose Input/Output, aka "BCM" or "Broadcom". These are the big numbers, e.g. "GPIO 22". You'll use these with RPi.GPIO and GPIO Zero. -* Physical - or "Board" correspond to the pin's physical location on the header. These are the small numbers next to the header, e.g. "Physical Pin 15". +* GPIO 引脚 - 通用输入输出引脚。这些数字的字体较大,比如“GPIO 22”。你可以在树莓派或者树莓派 Zero 上使用它们。 +* 硬件引脚 - 也就是引脚在端子上的硬件位置。它们的字体较小,并紧挨着引脚。比如“硬件引脚 15”。 * WiringPi - for Gordon Henderson's Wiring Pi library. These are shown as a tooltip when you mouseover a pin. * Rev 1 Pi - alternate GPIO/BCM numbers for the original, 26-pin model "A" and "B" Pi. -## What's the orientation of this pinout? +## 引脚定义图的排布方向是怎样的? -Pinout depicts pin 1 in the top left corner. Pin 1 is the only pin with a square solder pad, which may only be visible from the underside of your Pi. If you orient your Pi such that you are looking at the top with the GPIO on the right and HDMI port(s) on the left, your orientation will match Pinout. +在本页面上,左上方的是 1 号引脚。1 号引脚是唯一一个方形焊盘的引脚,从树莓派下方就可以看出来。再把树莓派转个面,从上方看树莓派,并让 HDMI 接口朝左,这样的话,你的树莓派朝向就跟本站页面一致了。 -## Graphical Pinout +## 引脚定义图片下载 -We've whipped up a simple graphical Raspberry Pi GPIO Pinout. Feel free to print, embed, share or hotlink this image and don't forget to credit us! +我们做了一个简单的树莓派 GPIO 引脚定义图。你可以免费下载、打印、分享链接,我们只需要一声谢谢就好啦。 -![Graphical Raspberry Pi GPIO Pinout](https://raw.githubusercontent.com/Gadgetoid/Pinout.xyz/master/resources/raspberry-pi-pinout.png) +![树莓派 GPIO 引脚定义图](https://raw.githubusercontent.com/Gadgetoid/Pinout.xyz/master/resources/raspberry-pi-pinout.png) diff --git a/src/zh/template/localised.yaml b/src/zh/template/localised.yaml index f9b7573..bc42f0d 100644 --- a/src/zh/template/localised.yaml +++ b/src/zh/template/localised.yaml @@ -1,33 +1,33 @@ strings: -- default_desc: 'The comprehensive add-on boards & GPIO Pinout guide for the Raspberry Pi' -- default_title: 'Raspberry Pi GPIO Pinout' +- default_desc: '树莓派及其扩展板的引脚定义导航站' +- default_title: '树莓派引脚定义' - title_suffix: ' at Raspberry Pi GPIO Pinout' -- home: 'Home' -- boards: 'Boards' -- details: 'Details' -- group_other: 'other' -- form_undefined: 'Undefined' -- pin_header: '{} pin header' +- home: '主页' +- boards: '开发板' +- details: '详情' +- group_other: '其他' +- form_undefined: '未定义' +- pin_header: '{} ' - type_hat: 'HAT form-factor' - type_phat: 'pHAT form-factor' - type_classic: 'Classic form-factor' -- eeprom_detect: 'EEPROM product ID' -- eeprom_setup: 'EEPROM auto configuration' -- uses_i2c: 'Communication over I2C' -- uses_spi: 'Communication over SPI' -- uses_5v_and_3v3: 'Needs 5v and 3v3 power' -- uses_5v: 'Needs 5v power' -- uses_3v3: 'Needs 3v3 power' -- uses_n_gpio_pins: 'Uses {} GPIO pins' -- bcm_pin_rev1_pi: 'GPIO/BCM pin {} on Rev 1 ( very early ) Pi' -- physical_pin_n: 'Physical/Board pin {}' -- wiring_pi_pin: 'Wiring Pi pin {}' -- made_by: 'Made by {manufacturer}' -- more_information: 'More Information' -- github_repository: 'GitHub Repository' -- board_schematic : 'Schematic' -- buy_now: 'Buy Now' -- browse_addons: 'Browse pinouts for HATs, pHATs and add-ons' -- return_home: 'Return to the Raspberry Pi GPIO Pinout' -- boards_title: 'Raspberry Pi HATs, pHATs & Add-ons' -- boards_subtitle: 'Click on a HAT, pHAT or add-on for more details and to see which pins it uses!' +- eeprom_detect: 'EEPROM 产品编号' +- eeprom_setup: 'EEPROM 自动配置' +- uses_i2c: '使用 I2C 通讯' +- uses_spi: '使用 SPI 通讯' +- uses_5v_and_3v3: '需要 5v 及 3v3 供电' +- uses_5v: '需要 5v 供电' +- uses_3v3: '需要 3v3 供电' +- uses_n_gpio_pins: '使用 GPIO 引脚 {}' +- bcm_pin_rev1_pi: '在初版(很久以前)的树莓派上的GPIO/BCM 引脚 {}' +- physical_pin_n: '{} 号物理引脚' +- wiring_pi_pin: 'Wiring Pi {} 号引脚' +- made_by: '由 {manufacturer} 制造' +- more_information: '更多信息' +- github_repository: 'GitHub 仓库' +- board_schematic : '原理图' +- buy_now: '立即购买' +- browse_addons: '查看盖板、迷你盖板及其他配件' +- return_home: '返回树莓派引脚定义主页' +- boards_title: '树莓派盖板、迷你盖板及其他配件' +- boards_subtitle: '点击以查看这些板子用了哪些引脚' diff --git a/src/zh/template/pinout.yaml b/src/zh/template/pinout.yaml index df8ebc9..c989a86 100644 --- a/src/zh/template/pinout.yaml +++ b/src/zh/template/pinout.yaml @@ -1,15 +1,15 @@ --- -name: Raspberry Pi GPIO Pinout +name: 树莓派 GPIO 引脚定义 pins: '1': - name: 3v3 Power + name: 3v3 供电 type: "+3v3" '2': - name: 5v Power + name: 5v 供电 type: "+5v" '3': name: I2C1 SDA - description: I2C Data + description: I2C 数据 type: GPIO/I2C scheme: wiringpi: 8 @@ -22,11 +22,11 @@ pins: alt3: AVEOUT VSYNC alt4: AVEIN VSYNC '4': - name: 5v Power + name: 5v 供电 type: "+5v" '5': name: I2C1 SCL - description: I2C Clock + description: I2C 时钟 type: GPIO/I2C scheme: wiringpi: 9 @@ -39,7 +39,7 @@ pins: alt3: AVEOUT HSYNC alt4: AVEIN HSYNC '6': - name: Ground + name: 地线 type: GND '7': name: GPCLK0 @@ -56,7 +56,7 @@ pins: alt5: JTAG TDI '8': name: UART TX - description: UART Transmit + description: UART 发送 type: GPIO/UART scheme: wiringpi: 15 @@ -69,11 +69,11 @@ pins: alt4: AVEIN VID10 alt5: UART1 TXD '9': - name: Ground + name: 地线 type: GND '10': name: UART RX - description: UART Receive + description: UART 接收 type: GPIO/UART scheme: wiringpi: 16 @@ -100,7 +100,7 @@ pins: alt5: UART1 RTS '12': name: PCM CLK - description: PCM Clock + description: PCM 时钟 type: GPIO/PCM scheme: wiringpi: 1 @@ -126,7 +126,7 @@ pins: alt3: SD1 DAT3 alt4: JTAG TMS '14': - name: Ground + name: 地线 type: GND '15': name: '' @@ -153,7 +153,7 @@ pins: alt3: SD1 CMD alt4: JTAG RTCK '17': - name: 3v3 Power + name: 3v3 供电 type: "+3v3" '18': name: '' @@ -180,7 +180,7 @@ pins: alt3: AVEOUT VID6 alt4: AVEIN VID6 '20': - name: Ground + name: 地线 type: GND '21': name: SPI0 MISO @@ -220,7 +220,7 @@ pins: alt4: AVEIN VID7 '24': name: SPI0 CE0 - description: SPI Chip Select 0 + description: SPI 片选信号 0 type: GPIO/SPI scheme: wiringpi: 10 @@ -232,11 +232,11 @@ pins: alt3: AVEOUT VID4 alt4: AVEIN VID4 '25': - name: Ground + name: 地线 type: GND '26': name: SPI0 CE1 - description: SPI Chip Select 1 + description: SPI 片选信号 1 type: GPIO/SPI scheme: wiringpi: 11 @@ -249,7 +249,7 @@ pins: alt4: AVEIN VID3 '27': name: EEPROM SDA - description: HAT EEPROM i2c Data + description: 盖板 EEPROM i2c 数据 type: GPIO/I2C scheme: wiringpi: 30 @@ -262,7 +262,7 @@ pins: alt4: AVEIN VCLK '28': name: EEPROM SCL - description: HAT EEPROM i2c Clock + description: 盖板 EEPROM i2c 时钟 type: GPIO/I2C scheme: wiringpi: 31 @@ -287,7 +287,7 @@ pins: alt4: AVEIN VID1 alt5: JTAG TDO '30': - name: Ground + name: 地线 type: GND '31': name: '' @@ -331,7 +331,7 @@ pins: alt4: AVEIN VID9 alt5: JTAG TCK '34': - name: Ground + name: 地线 type: GND '35': name: PCM FS @@ -374,7 +374,7 @@ pins: alt4: JTAG TDI '38': name: PCM DIN - description: PCM Data-In + description: PCM 数据输入 type: GPIO/PCM scheme: wiringpi: 28 @@ -387,11 +387,11 @@ pins: alt4: SPI1 MOSI alt5: GPCLK0 '39': - name: Ground + name: 地线 type: GND '40': name: PCM DOUT - description: PCM Data-Out + description: PCM 数据输出 type: GPIO/PCM scheme: wiringpi: 29