نقل قول نوشته اصلی توسط tolo.m نمایش پست ها
سلام
برنامه ای که گذاشتید این ارور رو میده :
Arduino: 1.6.0 (Windows 7), Board: "Arduino Uno"

aa.ino:2:13: error: 'serial' was not declared in this scope
aa.ino: In function 'void setup()':
aa.ino:5:2: error: 'serial' was not declared in this scope
aa.ino: In function 'void loop()':
aa.ino:11:5: error: 'serial' was not declared in this scope
Error compiling.

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
مشکل از کجاست؟
من کد صفحه اول رو با کتابخونه ای که همونجا گذاشته شده تست کردم بدون ارور کامپایل میشه
کد:
#include <Brain.h>


// Set up the brain parser, pass it the hardware serial object you want to listen on.
Brain brain(Serial);


void setup() {
    // Start the hardware serial.
    Serial.begin(9600);
}


void loop() {
    // Expect packets about once per second.
    // The .readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format:
    // "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma"    
    if (brain.update()) {
          Serial.println(brain.readErrors());
        Serial.println(brain.readCSV());
    }
}