diverse changes, cleanup

This commit is contained in:
2025-12-14 15:03:54 +01:00
parent 0f3fff60e4
commit 0e92f8cd36
19 changed files with 86754 additions and 10 deletions
+7 -3
View File
@@ -11,7 +11,7 @@
#include <avr/io.h>
template <long int timer_count_till, int timer_prescaler>
template <int timer_count_till, int timer_prescaler>
class TimerT {
// Methods
private:
@@ -24,8 +24,12 @@ class TimerT {
TCNT1 = 0;
OCR1AH = (timer_count_till<<8);
OCR1AL = timer_count_till;
//OCR1AH = (uint8_t)(timer_count_till<<8);
//OCR1AL = (uint8_t)timer_count_till;
//OCR1A = 39062;
OCR1A = timer_count_till;
TIMSK1 = (1<<ICIE1) | (1<<OCIE1A);
}