Raspberry
来自Jack's Lab
(版本间的差异)
(→Serial) |
(→Serial) |
||
第27行: | 第27行: | ||
== Serial == | == Serial == | ||
+ | |||
+ | === Enable === | ||
<pre> | <pre> | ||
/boot/cmdline.txt | /boot/cmdline.txt | ||
"console=serial0,115200" | "console=serial0,115200" | ||
+ | |||
+ | /boot/config.txt | ||
+ | #enable_uart=0 | ||
</pre> | </pre> | ||
− | 115200 | + | <br> |
+ | |||
+ | === Disable === | ||
+ | |||
+ | * remove "console=serial0,115200" in /boot/cmdline.txt | ||
+ | * add "enable_uart=1" into /boot/cmdline.txt | ||
+ | |||
+ | <br> | ||
+ | |||
+ | === Connections === | ||
* RASP_TXD --- HEX_TX | * RASP_TXD --- HEX_TX |
2017年9月29日 (五) 17:25的版本
目录 |
1 Pinout
1.1 Model A and B
1.2 Models A+, B+, PI 2 B, PI 3 B
2 Serial
2.1 Enable
/boot/cmdline.txt "console=serial0,115200" /boot/config.txt #enable_uart=0
2.2 Disable
- remove "console=serial0,115200" in /boot/cmdline.txt
- add "enable_uart=1" into /boot/cmdline.txt
2.3 Connections
- RASP_TXD --- HEX_TX
- RASP_RXD --- HEX_RX
2.4 Control
- https://github.com/joan2937/pigpio
- raspi-gpio
- RAW: http://www.pieter-jan.com/node/15