chipSelectHigh(); SPI.setClockDivider(SPI_SCK_INIT_DIVISOR); return true; fail: chipSelectHigh(); return false;
chipSelectHigh(); SPI.setClockDivider(sckDivisor); return true; fail: chipSelectHigh(); return false;
file.init(SDCARD_CS_PIN, SPI_CLOCK_DIV2);
/* launch firmware update if needed */ Fastwire::setup(400,0); vertaccel_init(); if( firmwareUpdateCond() ) { firmwareUpdate();}
/* launch firmware update if needed */ delay(1000); Fastwire::setup(400,0); vertaccel_init(); if( firmwareUpdateCond() ) { firmwareUpdate();}