@@ -373,10 +373,10 @@ void setup()
373373
374374 if (ITimer1.attachInterruptInterval(TIMER1_INTERVAL_MS, TimerHandler1))
375375 {
376- Serial1 .print(F("Starting ITimer OK, millis() = ")); Serial1 .println(millis());
376+ SerialDebug .print(F("Starting ITimer OK, millis() = ")); SerialDebug .println(millis());
377377 }
378378 else
379- Serial1 .println(F("Can't set ITimer. Select another freq. or timer"));
379+ SerialDebug .println(F("Can't set ITimer. Select another freq. or timer"));
380380}
381381```
382382
@@ -415,10 +415,10 @@ void setup()
415415 // Frequency in float Hz
416416 if (ITimer1.attachInterrupt(TIMER1_FREQ_HZ, TimerHandler1))
417417 {
418- Serial1 .print(F("Starting ITimer OK, millis() = ")); Serial1 .println(millis());
418+ SerialDebug .print(F("Starting ITimer OK, millis() = ")); SerialDebug .println(millis());
419419 }
420420 else
421- Serial1 .println("Can't set ITimer. Select another freq. or timer");
421+ SerialDebug .println("Can't set ITimer. Select another freq. or timer");
422422}
423423```
424424
@@ -480,8 +480,8 @@ void TimerHandler()
480480#define TIMER_INTERVAL_11S 11000L
481481#define TIMER_INTERVAL_101S 101000L
482482
483- // In AVR, avoid doing something fancy in ISR, for example complex Serial1 .print with String() argument
484- // The pure simple Serial1 .prints here are just for demonstration and testing. Must be eliminate in working environment
483+ // In AVR, avoid doing something fancy in ISR, for example complex SerialDebug .print with String() argument
484+ // The pure simple SerialDebug .prints here are just for demonstration and testing. Must be eliminate in working environment
485485// Or you can get this run-time error / crash
486486void doingSomething2s()
487487{
@@ -514,10 +514,10 @@ void setup()
514514 if (CurrentTimer.attachInterruptInterval(HW_TIMER_INTERVAL_MS, TimerHandler))
515515 {
516516 lastMillis = millis();
517- Serial1 .print(F("Starting ITimer OK, millis() = ")); Serial1 .println(millis());
517+ SerialDebug .print(F("Starting ITimer OK, millis() = ")); SerialDebug .println(millis());
518518 }
519519 else
520- Serial1 .println(F("Can't set ITimer correctly. Select another freq. or interval"));
520+ SerialDebug .println(F("Can't set ITimer correctly. Select another freq. or interval"));
521521
522522 // Just to demonstrate, don't use too many ISR Timers if not absolutely necessary
523523 // You can use up to 16 timer for each ISR_Timer
@@ -552,7 +552,7 @@ void setup()
552552
553553### Example [ ISR_16_Timers_Array_Complex] ( examples/ISR_16_Timers_Array_Complex )
554554
555- https://github.com/khoih-prog/Dx_TimerInterrupt/blob/76fc97c9e52fbc79a02db77f3f0e9d8842062a7a /examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino#L16-L384
555+ https://github.com/khoih-prog/Dx_TimerInterrupt/blob/5da293e180a3e313e0b98e888907fa8491eda101 /examples/ISR_16_Timers_Array_Complex/ISR_16_Timers_Array_Complex.ino#L16-L393
556556
557557
558558---
@@ -568,7 +568,7 @@ While software timer, **programmed for 2s, is activated after more than 10.000s
568568
569569```
570570Starting ISR_16_Timers_Array_Complex on AVR128DA
571- Dx_TimerInterrupt v1.1.1
571+ Dx_TimerInterrupt v1.1.2
572572CPU Frequency = 24 MHz
573573TCB Clock Frequency = Full clock (24/16MHz, etc) for highest accuracy
574574Starting ITimer OK, millis() = 13
@@ -656,7 +656,7 @@ Timer : 15, programmed : 80000, actual : 80013
656656
657657```
658658Starting ISR_16_Timers_Array_Complex on AVR128DA
659- Dx_TimerInterrupt v1.1.1
659+ Dx_TimerInterrupt v1.1.2
660660CPU Frequency = 24 MHz
661661TCB Clock Frequency = Full clock (24/16MHz, etc) for highest accuracy
662662Starting ITimer OK, millis() = 13
@@ -740,7 +740,7 @@ Timer : 15, programmed : 80000, actual : 80013
740740
741741```
742742Starting ISR_16_Timers_Array_Complex on AVR128DA
743- Dx_TimerInterrupt v1.1.1
743+ Dx_TimerInterrupt v1.1.2
744744CPU Frequency = 24 MHz
745745TCB Clock Frequency = Half clock (12/8MHz, etc.) for high accuracy
746746Starting ITimer OK, millis() = 12
@@ -807,7 +807,7 @@ The following is the sample terminal output when running example [Change_Interva
807807
808808```
809809Starting Change_Interval_HF on AVR128DA
810- Dx_TimerInterrupt v1.1.1
810+ Dx_TimerInterrupt v1.1.2
811811CPU Frequency = 24 MHz
812812TCB Clock Frequency = Full clock (24/16MHz, etc) for highest accuracy
813813Starting ITimer OK, millis() = 12
@@ -867,7 +867,7 @@ Time = 40040, Timer1Count = 669
867867
868868### Debug
869869
870- Debug is enabled by default on Serial1.
870+ Debug is enabled by default on ` Serial1 ` for ` Curiosity Nano AVRDA ` and ` Serial3 ` for ` Curiosity Nano AVRDB ` .
871871
872872You can also change the debugging level from 0 to 4
873873
@@ -918,8 +918,7 @@ Submit issues to: [Dx_TimerInterrupt issues](https://github.com/khoih-prog/Dx_Ti
918918 7 . Optimize library code by using ` reference-passing ` instead of ` value-passing `
919919 8 . Improve and customize examples for ` Curiosity Nano AVRDA/AVRDB ` boards to use on-board LED and SW
920920 9 . Add notes ` howto upload by drag-and-drop ` to ` CURIOSITY ` virtual drive
921- 10 . Using ` Serial1 ` instead of ` Serial ` for debugging with ** Curiosity Nano AVRDA/AVRDB**
922-
921+ 10 . Using Serial3 for debugging with Curiosity Nano AVRDB, and Serial1 for debugging with Curiosity Nano AVRDA
923922
924923---
925924---
0 commit comments