Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
SolidGeek authored Aug 19, 2018
1 parent 0b95aed commit 9fc9791
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ Arduino library for interfacing with a VESC over UART. This library is based upo

To use the library you will have initiate the VescUart class and set the Serial port for UART communcation.

```
```cpp
#include <VescUart.h>

VescUart UART;

void setup() {
Expand All @@ -24,7 +26,7 @@ You can now safely use the functions and change the values of the class.

Getting VESC telemetry is easy:

```
```cpp
if ( UART.getVescValues() ) {
Serial.println(UART.data.rpm);
Serial.println(UART.data.inpVoltage);
Expand Down

0 comments on commit 9fc9791

Please sign in to comment.