chipKIT® Development Platform

Inspired by Arduino™

Better (?) software serial library

Created Sun, 20 Jul 2014 14:52:26 +0000 by majenko


majenko

Sun, 20 Jul 2014 14:52:26 +0000

I have just started work on an improved (though by no means perfect) software serial library.

This library differs slightly from normal in that it uses a timer to run everything. That means it's completely "in the background" and behaves just like a normal hardware serial port.

It has both a TX and RX circular buffer, and characters get transmitted from / received into them without any manual intervention.

It only supports one serial port at the moment, but I hope to be able to get it to do more one day.

It uses the standard Stream interface, so you can use it anywhere you would use a hardware serial port.

It requires my timer library to operate.

[url]https://github.com/majenkotech/Timer[/url] [url]https://github.com/majenkotech/TimerSerial[/url]


Jacob Christ

Sun, 20 Jul 2014 17:05:46 +0000

Sweet...

Jacob


majenko

Sun, 20 Jul 2014 17:09:46 +0000

It's not perfect, but it does allow me now to use my GPS shield on pins other than 0/1 on my PICadillo.

Just waiting for my lipo charging shield to arrive from China, and I'll have my own handheld GPS receiver :)