got that error even thought i copy it exactly the way it is from another source (its a video, and in the video it works)
here is my code :
void setup()
{
pinMode(13, OUTPUT);
pinMode(2, INPUT);
attachInterrupt(digitalPinToInterrupt(2), button_changed, CHANGE);
}
void button_changed
{
digitalWrite(13, digitalWrite(2));
void loop()
{
}