o: ActiveSupport::Cache::Entry :@compressedF: @value"?"9
datalogger.pde
1 1
/*
2
  SD card datalogger
2
 SD card datalogger
3 3
 
4 4
 This example shows how to log data from three analog sensors 
5 5
 to an SD card using the SD library.
......
7 7
 The circuit:
8 8
 * analog sensors on analog ins PC0, PC1, and PC2
9 9
 * SD card attached to SPI bus as follows:
10
 ** MOSI - PB3
11
 ** MISO - PB4
10
 ** MOSI/CMD - PB3
11
 ** MISO/DAT0 - PB4
12 12
 ** CLK - PB5
13
 ** CS - PD4
14
 
15
 created  24 Nov 2010
16
 updated 2 Dec 2010
17
 by Tom Igoe
18
 
19
 This example code is in the public domain.
13
 ** CD/DAT3 - PD4
20 14
 	 
21 15
 */
22 16

  
23 17
#include <SD.h>
24
const int chipSelect = 4;
18
#define chipSelect  4
25 19

  
26 20
void setup()
27 21
{
......
46 40
{
47 41

  
48 42
  // make a string for assembling the data to log:
49
  String dataString = "$";
43
  String dataString = "$LOG";
50 44
  delay(100);
51 45
  dataString += String(count); // print number of measurement
52 46
  dataString += ",";
:@created_atf1421006790.8245189Äë:@expires_in0