Pages: [1]   Go Down
Author Topic: Cool Feature: SoftwareSerial To HardwareSerial "Proxy"  (Read 532 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Found from Teensy 1.14 Release Notes:
Added partial SoftwareSerial for Teensy 3.0. If the pins match one of the real serial ports, hardware serial is used. This allows use of libraries that are hard-coded for SoftwareSerial.

That's exactly what I needed for some time ago for MEGA or Leonardo. Maybe somebody has the skills to port this to Arduino IDE?

regards Beat
Logged

Offline Offline
Jr. Member
**
Karma: 0
Posts: 50
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The same approach would be nice for hardware and software SPI / I2C too.
Some libraries simply do work with hardware SPI / I2C, but are not easy (for me at least) modified to use software SPI / I2C...
Logged

Global Moderator
Netherlands
Offline Offline
Shannon Member
*****
Karma: 170
Posts: 12465
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


that would mean that software serial detects which board it runs, then checks if the pins are in a list of HW ports and call the HW serial instead?
Logged

Rob Tillaart

Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -
(Please do not PM for private consultancy)

Belgium
Offline Offline
Edison Member
*
Karma: 58
Posts: 1731
Arduino rocks; but with my plugin it can fly rocking the world ;-)
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I did something similar but far more basic for my RC lib
Basically I printed a warning during compile time when you are not using software serial and need it.
https://github.com/jantje/libraries/tree/master/RCLib
Best regards
Jantje

Logged

Do not PM me a question unless you are prepared to pay for consultancy.
Nederlandse sectie - http://arduino.cc/forum/index.php/board,77.0.html -

Pages: [1]   Go Up
Jump to: