#LIS3DH interrupt

1 messages · Page 1 of 1 (latest)

dense parcel
#

@high quail I am starting a thread.

high quail
#

100k from D12 to ground, no change. pinalarm has value=True, still waking up. trying with battery.

dense parcel
#

did you say this was an S3 TFT Feather?

#

and intpin is definitely D12?

high quail
#

yes, s3tft (not reverse)

#

pin is D12 in code, and wire is to D12

#

on battery, it runs through once, then goes dark. put 3.3v on the pin, it wakes up and cycles again. so THAT part is OK.

#

that said, you were right about the i2c power going away.

#

i'll need to run a wire to 3.3 to keep the LIS alive.

dense parcel
#

but you said the power LED on the breakout was illuminated? It might have been backpowering through the data lines

high quail
#

on USB power, yes, it was staying on.

#

backpower makes a little sense, as the pin being high would do that as well as do the wakeup.

#

don't know why it'd be different on USB vs battery.

dense parcel
#

I think it is backpowering from the interrupt pin, and you do still need to hold the TFT_I2C_POWER pin high during sleep. I realised that controls power to the STEMMA/QT socket, not just the on-board I2C devices.

#

quote from guide

There is a power pin that must be pulled high for the STEMMA QT connector to work. This is done automatically by CircuitPython and Arduino. The pin is available in CircuitPython and in Arduino as TFT_I2C_POWER

high quail
#

right.

#

that said, if i put 3.3v into the breakout, everything works as expected. EVEN WITH USB CONNECTED. I don't even pretend to understand.

dense parcel
#

i think in fake deep sleep, it is still turning off the power, but it's being backpowered.

high quail
#

dunno. it works now, thank you very much for all your input.

#

now if I could just make it so that the terminal doesn't show up on the display... it's very distracting having it flash the terminal when it wakes up.

dense parcel
#

you could probably still use the preserve_dios to send power to it if you didn't want to do the power bypass.

high quail
#

nah, the bypass is fine

dense parcel
#

there are ways to suppress the terminal, but I forget right now. A websearch would find it.

high quail
#

none of them work so far. i've currently got ```board.DISPLAY.root_group = None

#

i don't want to do a custom build to turn off the terminal completely.

#

someone said yesterday that by the time boot.py gets control, those few lines are already outputted