Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation changes (first half): Use only a single README.md per device #1611

Merged
merged 11 commits into from
Jul 29, 2021

Conversation

Ellerbach
Copy link
Member

@Ellerbach Ellerbach commented Jul 21, 2021

The idea is that samples/README.md should not exist and only one README.md file per device should be used.

This will make it easier to make READMEs visible in the documentation.

See #1610 for the second part

Microsoft Reviewers: Open in CodeFlow

@ghost ghost added the area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio label Jul 21, 2021
@@ -17,6 +16,81 @@ The implementation supports the following devices:

3 examples on how to use this device binding are available in the [samples](samples) folder.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to remove this

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved it after the basic usage

@@ -311,3 +311,47 @@ The only supported sensors in the GrovePi port present on BrickPi3 are I2C senso

A series of hardware tests for motors and sensors are available in [BrickPi3.samples](./samples). Those hardware tests offers a variety of low level access to the Brick class as well as high level thru the Motor and Sensor classes.

## Example

Refer to the [sample code](./samples) to understand on which port you'll need to plug motors and sensors. The available tests are the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggesting to remove links to samples - this will not look good if we port these docs to the official documentation - most likely the link will be broken

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a good catch. We may then want to replace by an absolute link on the repo?

## References
## Character LCD display Samples

[Different samples](./samples) are provided. The main method will use the Board's Gpio pins to drive the LCD display. The second example will instead use an MCP Gpio extender backpack to drive the LCD display. Also the second example can use Grove RGB LCD Backlight via i2c bus. This second example has been tested on a CrowPi device and Grove LCD RGB Backlight device.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto


#### I2C Protocol

![](DHT12_circuit_bb.png)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
![](DHT12_circuit_bb.png)
![Schematics](DHT12_circuit_bb.png)


This sample application allows you to select either a DHT10 through I2C either any other supported DHT through GPIO:

```texy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```texy
```text

@@ -38,7 +35,7 @@ Thread.Sleep(5000);
// Turn on buffering
display.BufferingEnabled = true;

// Write -42�C to display using "decimal point" between 3rd and 4th digit as the � character
// Write -42�C to display using "decimal point" between 3rd and 4th digit as the � character
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Write -42C to display using "decimal point" between 3rd and 4th digit as the character
// Write -42°C to display using "decimal point" between 3rd and 4th digit as the ° character

Copy link
Member

@krwq krwq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with few nits

@Ellerbach Ellerbach merged commit b467f71 into dotnet:main Jul 29, 2021
@github-actions github-actions bot locked and limited conversation to collaborators Dec 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-device-bindings Device Bindings for audio, sensor, motor, and display hardware that can used with System.Device.Gpio
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants