ATtiny 13a issues

I'm having issues uploading the IR remote code to the attiny13a

#include <IRremote.h>
#define code5 16726215 // button no 5
#define increase 16754775 //+ button
#define decrease 16769055 // -button
#define ldrPin A3
int pirSensor = 4;
int IrPin = 0;
int motionPin = 2;
int tPin = 1;

int ledState = 0;
int brightness;
int steps = 5;
int intensity;
int sensorValue;
int level;
IRrecv irrecv(IrPin);
decode_results results;

void setup() {
pinMode(motionPin, OUTPUT);
pinMode(pirSensor, INPUT);
pinMode(tPin, OUTPUT);
irrecv.enableIRIn();
}

void loop() {
readSensor();
//printSensor();
automaticMode();
IrRemote();
}

void readSensor() {
intensity = analogRead(A0);
sensorValue = digitalRead(pirSensor);
level = 300; // intensity level
}
void printSensor() {
Serial.print("intensity= ");
Serial.print(intensity);
Serial.print(" sensorValue= ");
Serial.println(sensorValue);
}
void automaticMode() {
if (sensorValue == 1) { // motion sensor detected
digitalWrite(motionPin, HIGH);
}
else {
digitalWrite(motionPin, LOW);
}

if (intensity < level) { // when intensity is < level on 33% brightness
delay(200);
analogWrite(tPin, 100);
}

else if (intensity > level && ledState == 0) { // turn off when the manualmode is off
delay(500);
digitalWrite(tPin, LOW);
}

if (intensity < level && sensorValue == 1) { // when both sensors are active brightness is 100%
digitalWrite(tPin, HIGH);
}
if (ledState == 1 && intensity < level) { // when manual is on do not reduce the brightness
digitalWrite(tPin, HIGH);
}
}
void IrRemote() {
if (irrecv.decode(&results)) {
unsigned int value = results.value;
switch (results.value) {
case code5:
if (ledState == 0 && intensity > level) {
digitalWrite(tPin, HIGH);
ledState = 1;
}
else {
digitalWrite(tPin, LOW);
ledState = 0;
}

}
irrecv.resume();

}
}

ERROR MESSAGE

If you are using this IRemote library you can see that Attiny13 is not in the list of supported processors.

If you are using another one, you should mention which one you attempt to use.

@chillydrey98, your topic has been moved to a more suitable location on the forum.

Can you please spend some time reading How to get the best out of this forum and next apply what you learned about code tags to the code that you posted.

Images of errors are usually useless. Do you see that 'copy error messages' button at the right in the orange bar above the output panel? When you click it, the error messages will be copied to the clipboard so you can paste them in a message here (again using code tags).

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.