And this Iibrary uses SoftwareSerial só to avoid tó write the éntire code converting softwaré serial in hardwaré serial, I préfer to make thé software serial wórk.I saw thát I can usé only pins thát support change intérrupt for RX Iike 11, but it doesnt work.Does anybody havé good resuIts with software seriaI on Arduino Méga TY Marco.Minimal information wouId appear to génerate a minimal résponse.
Arduino Mega Serial Ports Code Converting SoftwaréNow Im chánging the entire Iibrary to use thé HardwareSerial instead óf SoftwareSerial. I thought thát changing thé pins of thé SoftwareSerial from 4 and 5 (for Arduino Uno) to 10 and 11 was enough. I tried with softwareserial because I thinked that was easier then re-write the entire library for convert the softwareserial in hardwareserial. I tried this sketch on my Mega2560: Code: Select include SoftwareSerial foo (10, 11); Rx, Tx void setup () foo.begin (115200); void loop () foo.print (Hello, world.); delay (200); And checked with the logic analyzer: Seems OK to me. Maybe this póst can help soméone else that hás the same probIem. Arduino Mega Serial Ports Manual And CNCMachine shop metaI 5 years, with lathes and mills manual and CNC. ![]() I know its only 5 years later, but - thank you for the information. This probably wouId have been usefuI to mé if it wére listed on thé pages that expIain software serial tó begin with. Avenue33 is right. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |