Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 2 of 2

Thread: Reading Power Pin On Teensy 4.0

  1. #1
    Junior Member
    Join Date
    Dec 2020

    Reading Power Pin On Teensy 4.0


    I would like to know if it is possible to read signals from the powerpin through SNVS_LP or SNVS_HP. I understand that once the pin grounds for the defined time of 500ms, the teensy turns off into low power mode. I would like to see if I can run functions before the teensy turns off, so I can save some data, etc.

    Additionally, if I explicitly disable the power pin, as Frank B describes here , and I disconnect the battery to turn off the system, will the pin stay disabled? In other words, could disabling this pin risk being unable to turn the device back on to push new code?

    Thanks a bunch.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    see Post #27 in the same thread - I added a callback function.
    It gets called when the button is pressed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts