示例#1
0
文件: Atlas.cpp 项目: ryneches/Atlas
// Constructor
Atlas::Atlas() {
#ifdef USE_MUX
    pinMode( muxPin1, OUTPUT );
    pinMode( muxPin2, OUTPUT );
#endif

    _atlas.begin( baud );
}
bool transportInit() {
    // Reset the state machine
    _dev.begin(MY_RS485_BAUD_RATE);
    _serialReset();
#if defined(MY_RS485_DE_PIN)
    pinMode(MY_RS485_DE_PIN, OUTPUT);
    digitalWrite(MY_RS485_DE_PIN, LOW);
#endif
    return true;
}