leilei1269 / arduino-tiny

Automatically exported from code.google.com/p/arduino-tiny
Other
0 stars 0 forks source link

SoftwareSerial does not work #49

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. #include <SoftwareSerial.h>
2.
3.

What is the expected output? What do you see instead?
arduino-1.0/libraries/SoftwareSerial/SoftwareSerial.h:92:18: error: conflicting 
return type specified for ‘virtual size_t SoftwareSerial::write(uint8_t)’
arduino-1.0/hardware/tiny/cores/tiny/Print.h:71:18: error:   overriding 
‘virtual void Print::write(uint8_t)’

What version of the product are you using? On what operating system?
0100-0012

Please provide any additional information below.

sample sketch
#include <SoftwareSerial.h>
void setup() {}
void loop() {}

Original issue reported on code.google.com by Vindo...@gmail.com on 13 Mar 2012 at 11:01

GoogleCodeExporter commented 8 years ago
I have the same issue when building a sketch using SoftwareSerial for the 
ATTiny85. The print.h and print.cc from cores/arduino and cores/tiny differ in 
that they define print as void (in tiny) and size_t (in arduino).

Can someone "in the know" shed some light on this? 

Original comment by PeterJak...@googlemail.com on 6 Jun 2012 at 10:38

GoogleCodeExporter commented 8 years ago
sorry i'm not "in the know"
but some light could be http://arduino.cc/forum/index.php/topic,85238.0.html as 
point to depart

Original comment by sergio.a...@gmail.com on 23 Jun 2012 at 12:53

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by arduino....@gmail.com on 31 Jul 2012 at 7:06

GoogleCodeExporter commented 8 years ago
Olá, Para esse problema "conflicting return type specified for 'virtual void 
SoftwareSerial::write(uint8_t)"

Verifique em sua pasta da Livraria a pasta "/hardware/Arduino/arv/Librari" 
recorte a pasta SoftwareSerial e cole na pasta raiz da Libraria ai vai 
funcionar ... 

This Text is written in Português Please translate for english. tks
Sorry my english is very bad.

Original comment by guilherm...@gmail.com on 18 Jun 2014 at 12:48