XRPM_COUNTERS.h:15:5: error: expected unqualified-id before string constant ISR(PCINT0_vect) { ^ In file included from C:\Documents and Settings\SAM\Desktop\automation_1_A_NEW_AAA\automation_1_A_NEW_AAA.ino:10:0: XRPM_COUNTERS.h:72:1: error: expected ";" after class definition } ^ sketch\XRPM_COUNTERS.h: In function "void XRPMLoop()": XRPM_COUNTERS.h:77:19: error: "t" was not declared in this scope if ((millis() - t) > 300) rpm = 0; ^ XRPM_COUNTERS.h:77:29: error: "rpm" was not declared in this scope if ((millis() - t) > 300) rpm = 0; ^ XRPM_COUNTERS.h:79:17: error: "ot" was not declared in this scope else if (t != ot) { ^ XRPM_COUNTERS.h:81:5: error: "rpm" was not declared in this scope rpm = 60000.0 / (float)(t - ot); ^ XRPM_COUNTERS.h:87:13: error: "rpm" was not declared in this scope lcd.print(rpm); ^ XRPM_COUNTERS.h:93:14: error: "printVu" was not declared in this scope printVu(rpm); ^ sketch\XRPM_COUNTERS.h: At global scope: XRPM_COUNTERS.h:97:1: error: expected declaration before "}" token }; ^ exit status 1 expected unqualified-id before string constant 

댓글

  • 질문이 있습니까? ….. 의사에게 가서 왜 의사를 만나야하는지 말하지 않습니까?
  • 실제 코드를 포함하지 않았습니다. 오류가있는 ' 오류를 포함해야합니다. 그렇지 않으면 ' 도움을 드릴 수 없습니다.
  • ISR이 세미콜론으로 끝나지 않았기 전의 클래스 정의처럼 보임 ' …
  • 오류 : 비 정적 멤버 함수의 잘못된 사용 attachInterrupt (0, count, RISING);

답글 남기기

이메일 주소를 발행하지 않을 것입니다. 필수 항목은 *(으)로 표시합니다