Updated (10/10/20 v6.3.9) Updated T4 SPI driver. Changed Button Hold example pin to 6. Updated start early hook in T4.
Updated (4/20/20 v6.3.8)
- Maintenance release.
- Added new examples.
- Fixed all sketchs to work now, hopefully:).
- Teensy 4.0 should work now, many fixes.
- More code clean ups.
Updated (4/15/20 v6.3.7)
- Maintenance release.
- Added v1 Teensy 4.0 support.
- Updated and fixed examples.
- Updated docs.
Updated (2/9/20 v6.3.6)
- Maintenance release.
- Fixed Digital driver pin type to HAL.
- Snooze "sleep" now works for most drivers.
- Added Touch support for T-LC/36 Snooze "sleep" now!
- New function to change between LLS and VLLS modes in "deepSleep and hibernate".
- Wakeup ISR now run fastrun section for T3.x.
- Removed dummy Drivers, now will give an error if tried to use.
- Got rid of Drivers "isr" function, not needed since all "sleep" interrupt's run through the hal now.
- Changed "type" param to "mode" to not confict with pin type, i.e. "RISING,FALLING,etc...".
Updated (2/5/20 v6.3.5)
- Maintenance release.
- Uncoupled Snooze Class from drivers.
- Only deepSleep and hibernate work so far.
- Only LLS sleep mode for now.
- Checked all wakeups for TLC and 3.x.
- Hopefully improved wakeup sequence.
Updated (12/9/18 v6.3.4)
- Fixed sleep wake souce reporting.
- sleep compare now works.
- add more comments.
Updated (11/20/18 v6.3.3)
- Added F_CPU 256MHz.
Updated (11/4/17 v6.3.2)
- TeensyLC SnoozeSleepPWM example now works.
- Warning: now TeensyLC Internal Ref Clock is enabled, might lead to higher sleep currents.
Updated (9/5/17 v6.3.1)
- Fixed compare for TeensyLC
- Removed Wire library include from SnoozeAudio
Updated (8/30/17 v6.3.0)
- Fixed examples "compare driver", thanks Erik-k -> https://github.com/Erik-k.
- Audio Driver for ADC, DAC, STGL5000.
- add SPI Driver.
- added clock transistion -> pee_bple and blpe_pee.
- fixed VLLS3-1, was only using VLLS3.
- alarm driver function name change.
- fixed actual Compare Driver, added pins 9 and 4, pin 12 is not a valid pin.
Updated (3/27/17 v6.2.9)
- Fixed USB Serial driver for none USB_SERIAL type.
- Fixed return clock from sleep mode at 24MHz.
- Fixed typo in sleep_usb_serial.ino example.
Updated (2/20/17 v6.2.8)
- Re-added support for Teensy 3.0.
Updated (2/16/17 v6.2.7)
- Fixed sleep functions not returning right wakeup values.
- Updated examples.
- Added Teensy LC LED buffer driver.
- Usb works better now not perfect though.
Updated (1/31/17 v6.2.6)
- Fixed T3.6 High Speed Run deepSleep and hibernate.
- Timer driver only uses the LPO clock.
Updated (1/4/17 v6.2.5)
- Added Serial USB Driver.
- Added PWM Sleep Driver example.
Updated (10/18/16 v6.2.4)
- Fix bug with Teensy LC digital driver.
- Update README.md links.
Updated (10/18/16 v6.2.3)
- Temp fix for Teensy LC Timer driver below 50ms.
Updated (10/18/16 v6.2.2)
- Temp fix for Teensy error when not using RTC Library.
- Now hibernate and deepsleep work from a isr.
- Fix warnings from SnoozeCompare driver.
Updated (9/19/16 v6.2.1)
- Merge fix for core Digital wakeup from Github user jymoulin.
Updated (9/6/16 v6.2.0)
- Teensy35/36 now complies, need more testing for actual usage.
Updated (8/31/16 v6.1.1)
- Fixed skelton class example.
Updated (8/30/16 v6.1.0)
- Add INPUT_PULLDOWN code.
Updated (7/12/16 v6.0.3)
- Update License.
- Fix core millis count for low power timer wakeup.
- Add driver for Audio Library.
Updated (7/11/16 v6.0.2)
- Teensy LC now compiles.
Updated (6/29/16 v6.0.1)
- Initial Teensy 3.5 support.
- Fixed Touch and Compare modules for Teensy LC.
Updated (4/20/16 v6.0.0)
- New API.
Updated (1/12/16 v5.0.1)
- Fix for new Teensy Reg Defs.
Updated (10/27/15 v5.0.0)
- Now CPU Scaling is supported by the REDUCED_CPU_BLOCK macro.
- Reset systick when cpu goes to 2 MHz.
Updated (9/30/15 v5.4.2)
- Fixed Compiling TeensyLC PDB register in peripheral.h.
- Fixed TeensyLC warnings.
Updated (9/7/15 v5.4.1)
- Removed debug stuff.
- Fixed Properites Catagory warning.
Updated (6/4/15 v5.4)
- Made setTimer "time" param uint16_t.
- Fixed sleep function tsi wakeup for Teensy LC, Teensy 3.x not working yet maybe never.
- Removed unused code.
Updated (5/31/15 v5.3)
- Fixed sleep function low power timer.
- Fixed digital pin wake on LOW or HIGH interrupt type, now if pin interrupt type is configured LOW and the pin is LOW when going into sleep it will wake immediately, the same goes for if it is HIGH interrupt type.
Updated (5/28/15 v5.2.1)
- Remove debug stuff.
Updated (5/19/15 v5.2)
- Better documentation now but still needs work.
- Fixed TSI wakeup number for sleep interrupts.
- Digital Pins configurations only now change interrupt vector for the selected pin for the sleep function. This was do to Adafruit_nRF8001 library needing to keep its interrupt config intact. Possible problems still exists if a SnoozeBlock pin shares the same vector as the library or user code, not really sure how to handle that.
- Fixed LPTMR not resseting its compare time if other wakeup interrupt came before it. This would make the LPTMR not wait the full param time to fire its interrupt in next sleep mode.
- All library interrupts priorities raised to (current - 16) and LLWU priority raised to 32 because calling a function from an isr will block a lower priority interrupt.
Updated (4/24/15 v5.1)
- Fixed bug in Hibernate not giving the right wake up source and stopped setting unused registers in LLWU irq, Thanks to https://forum.pjrc.com/members/39437-rhubley.
- Functions sleep, deepSleep and hibernate now return wake source.
- Code cleanup and various code refactoring.
- Added library properties.
- Now compatible with Teensyduino 1.22.
Updated (3/12/15)
- Fixed again setting digital pin for Teensy-3.x/LC.
- Teensy LC pin 17 is set automatically to OUTPUT->LOW to reduce power.
- Now TSI work with Teensy-LC for deepSleep and hibernate.
- Compare some what works for Teensy-LC but will further modified in next release.
- Examples now are now Teensy-LC compatible.
Updated (3/9/15)
- Fixed setting digital pin for Teensy LC.
- Also need to set Teensy LC pin 17 to OUTPUT->HIGH.
Updated
- Initial TeensyLC support, not all wakeup sources are available, RTC, TSI, CMP and some digital pins are not waking the LC up either.
2. Since Teensyduino now can be programed at many different CPU speeds, dynamically changing cpu speeds is no longer supported, maybe in future I can bring it back if wanted.
3. Now the teensy can sleep at ~10uA with hibernate function. Special care is need when using this function. Must uncomment the define statement to use.
4. All sleep mode work the same with regards to setting up wakeup events. A separate class (SnoozeBlock) holds all configurations similar to LowPower_Teensy3's sleepBlock but I hope better and easier to implement.