fritz
New Member
Posts: 11
|
Post by fritz on Dec 13, 2019 20:03:53 GMT
pinMode(17, INPUT_PULLUP); //RX Serial1 The above INPUT_PULLUP is not working on SBuddy. I need serial communication with a payout device that needs its input to be pulled up to readbytes to a data buffer by MCU. The device is having the following data format: Encoding: NRZ Baud Rate : 9600 Start Bits : 1 Data Bits : 8 Parity : none Stop bits: 2
The serial communication was working perfectly in Arduino Mega. But in SB the pinMode(17, INPUT_PULLUP); doesn't seem to work. Kindly advice.
|
|
|
Post by Admin on Dec 13, 2019 21:01:49 GMT
Make sure that the pinMode() is after the Serial.begin()!
|
|
fritz
New Member
Posts: 11
|
Post by fritz on Dec 14, 2019 2:40:11 GMT
Are the pins 17 and 16 Serial1 ?
|
|
fritz
New Member
Posts: 11
|
Post by fritz on Dec 14, 2019 2:49:46 GMT
can I use the readBytes function to read the input bytes into a buffer in SBuddy?
|
|
fritz
New Member
Posts: 11
|
Post by fritz on Dec 14, 2019 6:06:09 GMT
I tried to use softwareserial.h library. But that did not compile for shieldbuddy TC 275. can anyone send the link to softwareserial library that will compile in shieldbuddy?
|
|
|
Post by Admin on Dec 14, 2019 8:58:36 GMT
|
|