未验证 提交 6023f3ab 编写于 作者: D Dan Moseley 提交者: GitHub

Merge pull request #74 from dotnet/spell

Fix spelling of Raspberry
......@@ -20,7 +20,7 @@ There are many libraries that are important beyond GPIO, I2C and related fundame
The samples expect the device pins to be connected in particular way to function, typically on a breadboard. Each example includes a [Fritzing](http://fritzing.org/home/) diagram of the required breadboard layout, such as the following one (taken from the [More blinking lights](led-more-blinking-lights/README.md) sample).
![Rasperry Pi Breadboard diagram](led-more-blinking-lights/rpi-more-blinking-lights_bb.png)
![Raspberry Pi Breadboard diagram](led-more-blinking-lights/rpi-more-blinking-lights_bb.png)
## Requirements
......
......@@ -51,7 +51,7 @@ while (true)
The following [fritzing diagram](rpi-led.fzz) demonstrates how you should wire your device in order to run the [program](Program.cs). It uses the GND and GPIO 17 pins on the Raspberry Pi.
![Rasperry Pi Breadboard diagram](rpi-led_bb.png)
![Raspberry Pi Breadboard diagram](rpi-led_bb.png)
## Hardware elements
......
......@@ -13,7 +13,7 @@ This sample demonstrates how to use five different elements together, three LEDs
The following [fritzing diagram](rpi-more-blinking-lights.fzz) demonstrates how you should wire your device in order to run the [program](Program.cs). It uses several pins on the Raspberry Pi.
![Rasperry Pi Breadboard diagram](rpi-more-blinking-lights_bb.png)
![Raspberry Pi Breadboard diagram](rpi-more-blinking-lights_bb.png)
## Hardware elements
......
# Using MCP3008 (10-bit Analog to Digital Converter)
Some devices like the Rasperry Pi cannot read analog values directly so rely on [analog to digital converters](https://en.wikipedia.org/wiki/Analog-to-digital_converter), like the [MCP3008 ADC](https://www.adafruit.com/product/856). The MCP3008 supports the SPI interface. The 10-bit chip can be accessed as an [SPI device](https://en.wikipedia.org/wiki/Serial_Peripheral_Interface) or manually via raw GPIO pins.
Some devices like the Raspberry Pi cannot read analog values directly so rely on [analog to digital converters](https://en.wikipedia.org/wiki/Analog-to-digital_converter), like the [MCP3008 ADC](https://www.adafruit.com/product/856). The MCP3008 supports the SPI interface. The 10-bit chip can be accessed as an [SPI device](https://en.wikipedia.org/wiki/Serial_Peripheral_Interface) or manually via raw GPIO pins.
You can use [Mcp3008.cs](Mcp3008.cs) in your project to access analog devices. [Reading Analog Input from a Potentiometer](samples/README.md) demonstrates a concrete example using this class.
......
......@@ -2,7 +2,7 @@
You can use .NET Core to read analog values from a [potentiometer](https://en.wikipedia.org/wiki/Trimmer_(electronics)), like a [volume control](https://www.adafruit.com/product/356).
The Rasperry Pi cannot read analog values directly so relies on an analog to digital converter, like the [MCP3008 ADC](https://www.adafruit.com/product/856). The MCP3008 supports the SPI interface. The 10-bit chip can be accessed as an SPI device or manually via raw GPIO pins. Both options are demonstrated.
The Raspberry Pi cannot read analog values directly so relies on an analog to digital converter, like the [MCP3008 ADC](https://www.adafruit.com/product/856). The MCP3008 supports the SPI interface. The 10-bit chip can be accessed as an SPI device or manually via raw GPIO pins. Both options are demonstrated.
## Accessing the MCP3008 via SPI
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册