mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-08-22 07:29:03 +00:00
Change charge display off to sleep (#3153)
This commit is contained in:
@@ -103,5 +103,13 @@ data_t SPI::transfer_word(const Direction direction, const address_t address, co
|
||||
return data_in;
|
||||
}
|
||||
|
||||
void SPI::power_down() {
|
||||
// A 0x01 address the MIX_CTRL register. A 0x0000
|
||||
transfer_word(Direction::Write, 0x01, 0x0000);
|
||||
|
||||
// a chip 300 µA-es Power Down
|
||||
transfer_word(Direction::Write, 0x00, 0x0000);
|
||||
}
|
||||
|
||||
} // namespace spi
|
||||
} // namespace rffc507x
|
||||
|
||||
Reference in New Issue
Block a user