Hello,
my name is Ingo. I am new in this forum. I am from Potsdam/Germany.
I like to use a Teensy 4.1 board in a battery powered application. The Teensy shall measure some data (ADC), print that data on a e-paper display and then start an actor for a calculated time. Then the actor has to be switched off and the Teensy controller shall sleep to save power. The RTC shall then wakeup the Teensy via interrupt and the same procedure shall be repeated.
I use Arduino IDE 2.3.2.
I found that thread: RTC alarm to wake up from deep sleep?
But the sketch published there does not run with Teensy 4.1. Trying to compile, gives a lot of error messages beginning with:
error: 'SIM_SCGC6' was not declared in this scope
SIM_SCGC6 |= SIM_SCGC6_RTC;// enable RTC clock
Can anyone help? Is it really possible to let the Teensy 4.1 sleep and be waked up by its own RTC?
I am familar with Arduinos (mostly programmed in Assembler) but unfortunately a newcomer to Teensy boards.
Best regards
Ingo.
my name is Ingo. I am new in this forum. I am from Potsdam/Germany.
I like to use a Teensy 4.1 board in a battery powered application. The Teensy shall measure some data (ADC), print that data on a e-paper display and then start an actor for a calculated time. Then the actor has to be switched off and the Teensy controller shall sleep to save power. The RTC shall then wakeup the Teensy via interrupt and the same procedure shall be repeated.
I use Arduino IDE 2.3.2.
I found that thread: RTC alarm to wake up from deep sleep?
But the sketch published there does not run with Teensy 4.1. Trying to compile, gives a lot of error messages beginning with:
error: 'SIM_SCGC6' was not declared in this scope
SIM_SCGC6 |= SIM_SCGC6_RTC;// enable RTC clock
Can anyone help? Is it really possible to let the Teensy 4.1 sleep and be waked up by its own RTC?
I am familar with Arduinos (mostly programmed in Assembler) but unfortunately a newcomer to Teensy boards.
Best regards
Ingo.