Försöker få ner koden som funkar bra till mina uno och nano enheter, men får den inte att lira med ESP8266. Någon som är smartare än mig som sitter på en lösning eller kan hjälpa till att förklara varför det inte funkar.
Börjar först med ett urklipp från den delen som inte vill (ligger under Void Loop):
Kod: Markera allt
TCCR2A = 0;
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
//Timer2 Overflow Interrupt Enable
TIMSK2 |= 1<<TOIE2;
}
// ************************************************
// Timer Interrupt Handler
// ************************************************
SIGNAL(TIMER2_OVF_vect)
{
if (opState == OFF)
{
try:116: error: expected constructor, destructor, or type conversion before '(' token
SIGNAL(TIMER2_OVF_vect)
^
try.ino: In function 'void setup()':
try:107: error: 'TCCR2A' was not declared in this scope
TCCR2A = 0;
^
try:108: error: 'TCCR2B' was not declared in this scope
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
^
try:108: error: 'CS22' was not declared in this scope
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
^
try:108: error: 'CS21' was not declared in this scope
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
^
try:108: error: 'CS20' was not declared in this scope
TCCR2B = 1<<CS22 | 1<<CS21 | 1<<CS20;
^
try:111: error: 'TIMSK2' was not declared in this scope
TIMSK2 |= 1<<TOIE2;
^
try:111: error: 'TOIE2' was not declared in this scope
TIMSK2 |= 1<<TOIE2;
^
try.ino: At global scope:
try:116: error: expected constructor, destructor, or type conversion before '(' token
SIGNAL(TIMER2_OVF_vect)
^
exit status 1
expected constructor, destructor, or type conversion before '(' token
Koden i helhet:
https://learn.adafruit.com/sous-vide-po ... -enchilada
Tack på förhand!