没有合适的资源?快使用搜索试试~ 我知道了~
首页Raspberry Pi User Guide, 4th Edition-C
Raspberry Pi User Guide, 4th Edition-C
需积分: 9 44 浏览量
更新于2023-05-30
评论
收藏 26.18MB PDF 举报
Raspberry Pi User Guide, 4th Edition-C,最新版的树莓派指南
资源详情
资源评论
资源推荐

Table of Contents
Introduction ......................................... 1
Programming Is Fun! .........................................................1
A Bit of History ..............................................................3
So What Can You Do with the Raspberry Pi? .....................................8
Part I e Board . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
CHAPTER 1
Meet the Raspberry Pi ................................. 13
A Trip Around the Board .....................................................13
Model A/B .................................................................16
Model A+/B+ ...............................................................16
Raspberry Pi 2 ..............................................................17
Raspberry Pi 3 ..............................................................18
Raspberry Pi Zero ...........................................................19
A Bit of Background .........................................................20
ARM Versus x86 .........................................................20
Windows Versus Linux ....................................................21
CHAPTER 2
Getting Started with the Raspberry Pi ...................... 23
Connecting a Display ........................................................23
Composite Video .........................................................24
HDMI Video .............................................................25
DSI Video ...............................................................26
Connecting Audio ...........................................................26
Connecting a Keyboard and Mouse ............................................27
Installing NOOBS on an SD Card ..............................................29
Connecting External Storage ..................................................30
Connecting the Network .....................................................31
Wired Networking ........................................................32
Wireless Networking ......................................................33
Connecting Power ...........................................................34
Installing the Operating System ...............................................35
Installing Using NOOBS ...................................................35
Installing Manually .......................................................37
Connecting Bluetooth Devices ................................................41

xiv
RASPBERRY PI USER GUIDE
CHAPTER 3
Linux System Administration ............................ 43
Linux: An Overview .........................................................43
Linux Basics ................................................................46
Introducing Raspbian ........................................................46
About Raspbian’s Parent, Debian ...........................................51
Alternatives to Raspbian. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Using External Storage Devices ...............................................52
Creating a New User Account .................................................54
File System Layout .......................................................54
Logical Layout ...........................................................55
Physical Layout ..........................................................57
Installing and Uninstalling Software ...........................................57
Managing Software Graphically .............................................57
Managing Software at the Command Line ...................................58
Finding the Software You Want ............................................60
Installing Software ........................................................61
Uninstalling Software .....................................................62
Upgrading Software .......................................................62
Shutting the Pi Down Safely ..................................................63
CHAPTER 4
Troubleshooting..................................... 65
Keyboard and Mouse Diagnostics .............................................65
Power Diagnostics ...........................................................66
Display Diagnostics .........................................................68
Boot Diagnostics ............................................................69
Network Diagnostics ........................................................69
CHAPTER 5
Network Conguration ................................. 73
Wired Networking ..........................................................73
Connecting to a Wired Network via the GUI ..................................73
Connecting to a Wired Network via the Console ..............................75
Testing Your Connectivity .................................................76
Wireless Networking ........................................................76
Connecting to a Wireless Network via the GUI ...............................77
Connecting to a Wireless Network via the Console ............................79

TABLE OF CONTENTS
xv
CHAPTER 6
The Raspberry Pi Conguration Tool ...................... 85
Running the Tool ...........................................................85
e System Tab .............................................................86
Filesystem ...............................................................86
Password ................................................................87
Hostname ...............................................................88
Boot ....................................................................88
Auto Login ..............................................................88
Network at Boot ..........................................................89
Overscan ................................................................89
Rastrack .................................................................89
e Interfaces Tab ...........................................................90
Camera .................................................................91
SSH ....................................................................91
SPI .....................................................................91
I
2
C .....................................................................91
Serial ...................................................................91
1-Wire ..................................................................92
Performance ................................................................92
Overclock ...............................................................92
GPU Memory ............................................................94
Localisation ................................................................94
Locale ...................................................................94
Timezone ...............................................................96
Keyboard ................................................................96
CHAPTER 7
Advanced Raspberry Pi Conguration...................... 99
Editing Conguration Files via NOOBS ........................................99
Hardware Settings: cong.txt ................................................101
Modifying the Display ....................................................102
Boot Options ...........................................................105
Overclocking the Raspberry Pi .............................................106
Disabling L2 Cache .........................................................110
Enabling Test Mode .....................................................110
Memory Partitioning .......................................................111
Software Settings: cmdline.txt ...............................................112

xvi
RASPBERRY PI USER GUIDE
Part II Building a Media Centre or Productivity Machine .�.�.�.�.�.115
CHAPTER 8
The Pi as a Home Theatre PC ........................... 117
Playing Music at the Console ................................................117
Dedicated HTPC with OSMC ................................................119
Streaming Internet Media ................................................122
Streaming Local Network Media ...........................................123
Conguring OSMC ......................................................124
CHAPTER 9
The Pi as a Productivity Machine ........................ 127
Using Cloud-Based Apps ....................................................127
Using LibreOce ..........................................................130
Image Editing with the Gimp ................................................131
Part III Programming the Pi�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.135
CHAPTER 10
An Introduction to Scratch ............................. 137
Introducing Scratch ........................................................137
Example 1: Hello World .....................................................138
Example 2: Animation and Sound ............................................141
Example 3: A Simple Game ..................................................144
Interfacing Scratch with Hardware. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .149
Further Reading ...........................................................152
CHAPTER 11
An Introduction to Python............................. 153
Introducing Python ........................................................153
Example 1: Hello World .....................................................154
Example 2: Comments, Inputs, Variables, and Loops ............................159
Example 3: Gaming with pygame .............................................164
Example 4: Python and Networking ..........................................172
Further Reading ...........................................................179
CHAPTER 12
Minecraft Pi Edition ................................. 181
Introducing Minecraft Pi Edition .............................................181
Installing Minecraft ........................................................182

TABLE OF CONTENTS
xvii
Running Minecraft .........................................................182
Exploration ...............................................................184
Hacking Minecraft .........................................................185
Part IV Hardware Hacking �.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.�.191
CHAPTER 13
Learning to Hack Hardware ............................ 193
Electronic Equipment .......................................................193
Reading Resistor Colour Codes ...............................................195
Sourcing Components ......................................................197
Online Sources ..........................................................197
Oine Sources ..........................................................198
Hobby Specialists ........................................................199
Moving Up from the Breadboard .............................................199
A Brief Guide to Soldering ...................................................202
CHAPTER 14
The GPIO Port ..................................... 207
Identifying Your Board Revision ..............................................207
GPIO Pinout Diagrams ......................................................208
GPIO Features .............................................................210
UART Serial Bus .........................................................211
I
2
C Bus .................................................................211
SPI Bus ................................................................211
Using the GPIO Port in Python ..............................................212
GPIO Output: Flashing an LED ............................................212
GPIO Input: Reading a Button .............................................216
Soldering the Raspberry Pi Zero’s GPIO Header ................................220
CHAPTER 15
The Raspberry Pi Camera Module ........................ 223
Why Use the Camera Module? ...............................................224
Choosing a Camera Module ..................................................224
Installing the Camera Module ................................................225
Enabling Camera Mode .....................................................228
Capturing Stills ............................................................230
Recording Video ...........................................................232
Command-Line Time-Lapse Photography .....................................233
剩余296页未读,继续阅读

















Mocondo
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- Xilinx SRIO详解.pptx
- Informatica PowerCenter 10.2 for Centos7.6安装配置说明.pdf
- 现代无线系统射频电路实用设计卷II 英文版.pdf
- 电子产品可靠性设计 自己讲课用的PPT,包括设计方案的可靠性选择,元器件的选择与使用,降额设计,热设计,余度设计,参数优化设计 和 失效分析等
- MPC5744P-DEV-KIT-REVE-QSG.pdf
- 通信原理课程设计报告(ASK FSK PSK Matlab仿真--数字调制技术的仿真实现及性能研究)
- ORIGIN7.0使用说明
- 在VMware Player 3.1.3下安装Redhat Linux详尽步骤
- python学生信息管理系统实现代码
- 西门子MES手册 13 OpcenterEXCR_PortalStudio1_81RB1.pdf
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0