Skip to content

Commit

Permalink
update readme example for new serialport version
Browse files Browse the repository at this point in the history
  • Loading branch information
noopkat committed Jul 19, 2020
1 parent 4f96d17 commit 200c70b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,13 +164,13 @@ Logs activity information to the console while performing methods.

```javascript
var stk500v2 = require('avrgirl-stk500v2');
var serialport = require('serialport');
var SerialPort = serialport.SerialPort;
var Serialport = require('serialport');

var sp = new SerialPort('/dev/cu.usbmodem1411', {
baudrate: 115200,
parser: serialport.parsers.raw
}, false);
var sp = new Serialport('/dev/cu.usbmodem1411', {
baudRate: 115200,
parser: Serialport.parsers.raw,
autoOpen: false
});

var mega = {
// all chip properties
Expand Down

0 comments on commit 200c70b

Please sign in to comment.