energia / Energia

Fork of Arduino for the Texas Instruments LaunchPad's
http://energia.nu
Other
794 stars 672 forks source link

How to lower the power consumption of the Sharp BoosterPack display? #1055

Open rei-vilo opened 4 years ago

rei-vilo commented 4 years ago

I'm trying to lower the power consumption of the Sharp BoosterPack display as much as possible, with the screen maintaining what is displayed and the rest of the CC1352 in low power or idle mode.

The SPI bus takes about ~2 mA alone.

Doing so freezes the MCU as SendToggleVCOMCommand() tries to use SPI.

https://github.com/energia/Energia/blob/3116b847940a26176382dd6827755854a0bb0c69/libraries/LCD_SharpBoosterPack_SPI/LCD_SharpBoosterPack_SPI.cpp#L529-L537

So the question is how to maintain the Toggle VCOM procedure without using SPI?

Could the Sensor Controller come to the rescue?

Note: According to page 16 of LS013B7DH03_16Nov12_Spec_LCP-1112061.pdf, CS is HIGH to select the screen.