In the teensy connected a gyroscope and when i finish measurements of sensor the microcontroller goes into a hibernation state.
When going a hibernation state consumption has increased,if i delete the commands below in the code
and run the program again consumption will be reduced.
When it goes to a hibernation state the spi communication does not stop??
What can i do?
When going a hibernation state consumption has increased,if i delete the commands below in the code
Code:
void setup() {
.
.
.
.
[COLOR="#B22222"][COLOR="#FF0000"] //SPI2.setSCK(46);
//SPI2.setMOSI(44);
//SPI2.setMISO(45);
//SPI2.begin();
//SPI2.beginTransaction(SPISettings(10000000, MSBFIRST, SPI_MODE0));[/COLOR][/COLOR]
.
.
.
and run the program again consumption will be reduced.
When it goes to a hibernation state the spi communication does not stop??
What can i do?