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
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
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!
Keep Informed
About This Forum
This community is for professionals and enthusiasts of our products and services.
Read GuidelinesQuestion tools
Stats
Asked: 3/3/21, 2:21 AM |
Seen: 1214 times |
Last updated: 3/3/21, 3:25 AM |
const int TxEnablePin = 9; digitalWrite(TxEnablePin, HIGH); delay(50); digitalWrite(TxEnablePin, LOW); delay(50); these line will same?