aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tk-attiny.h5
-rw-r--r--tk-delay.h2
2 files changed, 4 insertions, 3 deletions
diff --git a/tk-attiny.h b/tk-attiny.h
index 003e915..9415a97 100644
--- a/tk-attiny.h
+++ b/tk-attiny.h
@@ -32,6 +32,7 @@
#define V_REF REFS0
#define BOGOMIPS 950
#elif (ATTINY == 25)
+ // TODO: Use 6.4 MHz instead of 8 MHz?
#define F_CPU 8000000UL
#define EEPSIZE 128
#define V_REF REFS1
@@ -45,7 +46,7 @@
#ifdef FET_7135_LAYOUT
/*
* ----
- * -|1 8|- VCC
+ * Reset -|1 8|- VCC
* OTC -|2 7|- Voltage ADC
* Star 3 -|3 6|- PWM (FET)
* GND -|4 5|- PWM (1x7135)
@@ -74,7 +75,7 @@
#ifdef FERRERO_ROCHER_LAYOUT
/*
* ----
- * -|1 8|- VCC
+ * Reset -|1 8|- VCC
* E-switch -|2 7|- Voltage ADC
* Red LED -|3 6|- PWM
* GND -|4 5|- Green LED
diff --git a/tk-delay.h b/tk-delay.h
index 572d75e..57bdded 100644
--- a/tk-delay.h
+++ b/tk-delay.h
@@ -40,7 +40,7 @@ void _delay_ms(uint16_t n)
#ifdef USE_DELAY_S
void _delay_s() // because it saves a bit of ROM space to do it this way
{
- _delay_ms(BOGOMIPS);
+ _delay_ms(1000);
}
#endif
#else
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.