I would like to directly control a pin on the Arduino Mega. In my previous code used to control pin 9 on the Arduino UNO, I used the following function:
How can I achieve the same kind of pin control on the Mega? What are the direct port calling names as well as the sequence to turn it High/Low? Essentially, I would like to achieve the above on the Mega.