From 656d3d0b50278c1232f98e714866d3cda9ef5a4f Mon Sep 17 00:00:00 2001 From: PeeWee2000 Date: Sat, 15 Dec 2018 10:09:21 -0500 Subject: [PATCH] Update readme The syntax for the example doesn't work immediately after a copy and paste and doesn't provide the necessary using statements. --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0b15976..64c4b1e 100644 --- a/README.md +++ b/README.md @@ -5,10 +5,15 @@ A .NET library to easily connect, drive and debug an Arduino through a simple an ![ArduinoDriver](https://github.com/christophediericx/ArduinoDriver/blob/master/Images/ArduinoDriver.png) ## Summary ## -A two-line snippet can illustrate some of the library's features: +Add two using statements to you project and the two-line snippet below can illustrate some of the library's features: ```csharp -var driver = new ArduinoDriver(ArduinoModel.UnoR3, true); -driver.Send(new ToneRequest(8, 200, 1000)); + + using ArduinoDriver.SerialProtocol; + using ArduinoUploader.Hardware; + + var driver = new ArduinoDriver.ArduinoDriver(ArduinoModel.UnoR3, true); + driver.Send(new ToneRequest(8, 200, 1000)); + ``` * This creates an ArduinoDriver for a specific Arduino Model (in this case an Uno).