strike / SoftwareSerial

SoftwareSerial with flash memory string (progmem) support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SoftwareSerial

About

SoftwareSerial -- library for arduino. In this modification you can use flash (programm) memory for print. You can you _P function (write_P, writeln_P) or usual function (write, writeln).

Usage

#include <avr/pgmspace.h>
...

SoftwareSerial mySerial(10, 11); // RX, TX

void someFunction(){
  mySerial.begin(4800);
  ...
  // print flash string
  mySerial.writeln(F("Hello, world?"));
  // or 
  mySerial.writeln_P(F("Hello, world?"));
  ...

}

TODO

Do support PinChangeInt library. Now you need delete some part of code (unfortunately, #define isn't work). I think that it's evil, but I haven't a time.

About

SoftwareSerial with flash memory string (progmem) support


Languages

Language:C++ 82.0%Language:Arduino 18.0%