Industruino leonardo based code not working in d21g board

Hello 

I have a code of old Ind IO board leonardo based. now i want to use this in new d21g board. but it is not working. in this program i am sending analog value to the rs485 port. 

Regards

 

GANESH JOSHI
GANESH JOSHI
14
| 0 0 0
Asked on 3/3/21, 2:21 AM
0
vote
967 Views

Hi,

The relevant changes for your code are probably:

  • change Serial to SerialUSB for interaction with Serial Monitor over USB
  • change Serial1 to Serial for RS485

The specifics for the D21G are detailed in the docs https://github.com/Industruino/documentation/blob/master/indio.md#d21g-board-specific-features

Tom
Tom
5675
| 1 1 3
Answered on 3/3/21, 3:25 AM
0
vote

const int TxEnablePin = 9; digitalWrite(TxEnablePin, HIGH); delay(50); digitalWrite(TxEnablePin, LOW); delay(50); these line will same?

GANESH JOSHI
on 3/3/21, 5:09 AM

Your answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

Ask a Question

Keep Informed

About This Forum

This community is for professionals and enthusiasts of our products and services.

Read Guidelines

Question tools

62 follower(s)

Stats

Asked: 3/3/21, 2:21 AM
Seen: 967 times
Last updated: 3/3/21, 3:25 AM