Hello,
I am using a mega as master and an slave integrated circuit.
When I shut down the integrated circuit, the sck pin remain high.
Putting the sck high with the power supply off will destroy the circuit.
So I have to put the sck down before shuting down the supply of the IC.
if I put this code:
digitalWrite(SCK, LOW);
This doesn't work, the pin remain high.
If i print the SCK pin, like
Serial.print(SCK);
The number 13 is written in the console.
That is very surprising because for the Mega, according to the Arduino doc the sck pin is 52 !
Pin 13 is corresponding to SCK but for the arduino Uno....
But, the SPI bus is running correctli...
I try to force the pin 52 to low but the pin doesnt go down !
That is very surprising because for the Mega, according to the Arduino doc the sck pin is 52 !
Pin 13 is corresponding to SCK but for the arduino Uno....
Obviously, the code you couldn't be bothered posting assigns the value 13 to SCK.