Exit status 1.... please help

Hi, i have been doing a project or a remote controlled thingy... in the remote i use almoste every digital pin there is and a couple analogs... the problem when i tried to compile it just shows
"exits status 1
Error compiling to Arduino Nano."

I've had this problem before and it was because incompatible libraries, but i have another sketch with the same libraries and works just fine.

Does somebody knows what is going on? If you do please help me!

go_arm_remote.ino (2.3 KB)

pablodotti9026:
... when i tried to compile it just shows
"exits status 1
Error compiling to Arduino Nano."
...

I'll bet there's more to the error message.

Your code in in an attachment. When I try to look at it, I get told it needs to be in folder, etc. Can you post your code according to the standard forum protocol? (Hint: it's in the "How to use..." post at the top of every forum.)

#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24_config.h>
#include <SPI.h>

RF24 radio (6,7);

#define disconnected_led 0
#define connected_led 1
#define groundpin 2
#define highpin 3
#define do_button 4
#define normal_button A3
#define slow_button A2
#define slower_button A1
#define slower_led 8
#define slow_led 9
#define normal_led 10
#define joyy A4
#define joyx A5



struct dataStrct{
  String state = "";
  boolean execute = LOW;
  int joyx;
  int joyy;
}mydata;

const uint64_t pipe = 0xE8E8F0F0E1LL;


void setup() {
  pinMode (disconnected_led, OUTPUT);
  pinMode (connected_led, OUTPUT);
  pinMode (groundpin, INPUT);
  pinMode (highpin, OUTPUT);
  pinMode (do_button, INPUT);
  pinMode (normal_button, INPUT);
  pinMode (slow_button, INPUT);
  pinMode (slower_button, INPUT);
  pinMode (slower_led, OUTPUT);
  pinMode (slow_led, OUTPUT);
  pinMode (normal_led, OUTPUT);
  pinMode (joyy, INPUT);
  pinMode (joyx, INPUT);
  
  radio.begin ();
  radio.setChannel (115);
  radio.setDataRate (RF24_250KBPS);
  radio.openWritingPipe (pipe);
  radio.setPALevel (RF24_PA_MAX);

  turning_on ();
}

void loop() {
  if(radio.available()){
    digitalWrite (connected_led, HIGH);
    digitalWrite (disconnected_led, LOW);

    if (analogRead (slower_button) >= 200){
      digitalWrite (slower_led, HIGH);
      digitalWrite (slow_led, LOW);
      digitalWrite (normal_led, LOW);
      mydata.state = "slower";
    }
    if (analogRead (slow_button) >= 200){
      digitalWrite (slow_led, HIGH);
      digitalWrite (slower_led, LOW);
      digitalWrite (normal_led, LOW);
      mydata.state = "slow";
    }
    if (analogRead (normal_button) >= 200){
      digitalWrite (normal_led, HIGH);
      digitalWrite (slower_led, LOW);
      digitalWrite (slow_led, LOW);
      mydata.state = "normal";
    }
    if (digitalRead (do_button) == HIGH){
      mydata.execute = HIGH;
    }
    
    radio.write (&mydata, sizeof (mydata));
    
  }
  else{
    digitalWrite (disconnected_led, HIGH);
    digitalWrite (connected_led, LOW);
  }
  
}


void turning_on(){
  digitalWrite (slower_led, HIGH);
  delay (350);
  digitalWrite (slow_led, HIGH);
  delay (350);
  digitalWrite (normal_led. HIGH);
  delay (850);
  digitalWrite (slower_led, LOW);
  digitalWrite (slow_led, LOW);
  digitalWrite (normal_led,LOW);
  delay (300);
}

digitalWrite (normal_led. HIGH);Oops

I feel so stupid right now, thanks for noticing and telling me.

It's useful to post the WHOLE error message - the IDE even has a control to help you.