Rei Vilo - May 20, 2014
(C) Copyright 2010 SparkFun Electronics
Copyright (C) 2009 by William Greiman
SD-card in SPI mode requires a 512 bytes buffer for read-write operations.
Energia 12
Boards
Other candidates
Parameters
chipSelectPin
pin number for SD-card chip selectsckRateID
SPI speed, optional, default=SPI_HALF_SPEEDSPI_Port
SPI port number, optional, default=-1=nonecardDetectionPin
card detection pin number, optional, default=-1=nonelevel
expected level when SD-card available, default=LOWResult
boolean begin(uint8_t chipSelectPin,
uint8_t sckRateID = SPI_HALF_SPEED,
int8_t SPI_Port = -1,
int8_t cardDetectionPin = -1,
int8_t level = LOW);
Result
Uses previously defined cardDetectionPin and level
uint8_t detectSD();
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License