PLX-DAQ-v2-Default Sketch combine Lcd coding failure

i’m noob
as topic,i fail to combline those together in my coding
the one without LCD is right
but after i put it together, it dead at the void loop()
plz help me QAQ

test1.ino (1.84 KB)

test2.ino (2.96 KB)

For informed help, please read and follow the instructions in the “How to use this forum” post.

jremington:
For informed help, please read and follow the instructions in the "How to use this forum" post.

i don't get you,???

LuDaniel:
i don't get you,???

Did you read this?

Why not?

That code is crap.

    cli(); 
    Calc = (NbTopsFan * 60 / 7.5); 
    Calc2 = (Number++);

    lcd.home(); 
    lcd.setCursor(0,0);
    lcd.print(Calc, DEC);
    delay(1000);   
    Serial.print(buttonState, beforeState);
    Serial.println("btnstate, bfstate");   
    Serial.print("DATA,DATE,TIME,TIMER,");
    Serial.print (Calc, DEC); 
    Serial.print (" L/hourrn"); 
    Serial.print(",");
    Serial.println (Calc2, DEC); 
    Serial.print(",");
    Serial.println(millis());

You are doing a lot of stuff that requires interrupts while you have interrupts disabled.

You need to find, or write, some decent code that does NOT diddle with interrupts.

Thank a lot
by the way i have read it lately XD