![]() ![]() NewSoftSerial offers a number of improvements over SoftwareSerial: Using interrupt-driven RX, your program fills its buffer behind the scenes while processing previously received data. This is where AFSoftSerial’s (and NewSoftSerial‘s) interrupt architecture is a godsend. Your program is too busy trying to keep up with NMEA characters as they arrive to actually spend time assembling them into something meaningful. This makes it nearly impossible, for example, to use SoftwareSerial to receive GPS data and parse it into a usable form. Without interrupts, your program’s design is considerably restricted, as it must continually poll the serial port at very short, regular intervals. It’s the direct descendant of ladyada’s AFSoftSerial, which introduced interrupt-driven receives – a dramatic improvement over the polling required by the native SoftwareSerial. NewSoftSerial is the latest of three Arduino libraries providing “soft” serial port support. To port your code to 1.0, simply change all NewSoftSerial references to SoftwareSerial. This means that if you have 1.0 or later, you should not download this library. News: NewSoftSerial is in the core! Starting with Arduino 1.0 (December, 2011), NewSoftSerial has replaced the old SoftwareSerial library as the officially supported software serial library. A New Software Serial Library for Arduino ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |