Permalink
Browse files

Revert "added toInt() function to WString".

This reverts commit 448222e.
  • Loading branch information...
1 parent ab8c3fe commit 920212ee05fbb2e39de609a4b008f0990a34cdd3 @damellis damellis committed Nov 29, 2010
Showing 4,031 changed files with 0 additions and 965,764 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
@@ -1,81 +0,0 @@
-/*
- SD card datalogger
-
- This example shows how to log data from three analog sensors
- to an SD card using the SD library.
-
- The circuit:
- * analog sensors on analog ins 0, 1, and 2
- * SD card attached to SPI bus as follows:
- ** MOSI - pin 11
- ** MISO - pin 12
- ** CLK - pin 13
- ** CS - pin 4
-
- created 24 Nov 2010
- by Tom Igoe
-
- This example code is in the public domain.
-
- */
-
-#include <SD.h>
-
-// On the Ethernet Shield, CS is pin 4. Note that even if it's not
-// used as the CS pin, the hardware CS pin (10 on most Arduino boards,
-// 53 on the Mega) must be left as an output or the SD library
-// functions will not work.
-const int chipSelect = 4;
-
-void setup()
-{
- Serial.begin(9600);
- Serial.print("Initializing SD card...");
-
- // see if the card is present and can be initialized:
- if (!SD.begin(chipSelect)) {
- Serial.println("Card failed, or not present");
- // don't do anything more:
- return;
- }
- Serial.println("card initialized.");
-}
-
-void loop()
-{
- // make a string for assembling the data to log:
- String dataString = "";
-
- // read three sensors and append to the string:
- for (int analogPin = 0; analogPin < 3; analogPin++) {
- int sensor = analogRead(analogPin);
- dataString += String(sensor);
- if (analogPin < 2) {
- dataString += ",";
- }
- }
-
- // open the file:
- File dataFile = SD.open("datalog.txt", true, true);
-
- // if the file is available, write to it:
- if (dataFile) {
- dataFile.println(dataString);
- dataFile.close();
- // print to the serial port too:
- Serial.println(dataString);
- }
- // if the file isn't open, pop up an error:
- else {
- Serial.println("error opening datalog.txt");
- }
-}
-
-
-
-
-
-
-
-
-
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
Binary file not shown.
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
-<plist version="0.9">
- <dict>
- <key>CFBundleName</key>
- <string>Arduino</string>
-
- <!-- all these need to change for new releases -->
- <key>CFBundleGetInfoString</key>
- <string>0022</string>
- <key>CFBundleVersion</key>
- <string>0022</string>
- <key>CFBundleShortVersionString</key>
- <string>0022</string>
- <!-- now stop changing things and get outta here -->
-
- <key>CFBundleAllowMixedLocalizations</key>
- <string>true</string>
- <key>CFBundleExecutable</key>
- <string>JavaApplicationStub</string>
- <key>CFBundleDevelopmentRegion</key>
- <string>English</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleSignature</key>
- <string>Pde1</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleIconFile</key>
- <string>processing.icns</string>
- <key>CFBundleIdentifier</key>
- <string>cc.arduino.Arduino</string>
- <key>CFBundleDocumentTypes</key>
- <array>
- <dict>
- <key>CFBundleTypeExtensions</key>
- <array>
- <string>pde</string>
- <string>java</string>
- </array>
- <key>CFBundleTypeIconFile</key>
- <string>pde.icns</string>
- <key>CFBundleTypeName</key>
- <string>Processing Source File</string>
- <key>CFBundleTypeMIMETypes</key>
- <array>
- <string>text/plain</string>
- </array>
- <key>CFBundleTypeOSTypes</key>
- <array>
- <string>TEXT</string>
- </array>
- <key>CFBundleTypeRole</key>
- <string>Editor</string>
- </dict>
- </array>
- <key>Java</key>
- <dict>
- <key>VMOptions</key>
- <array>
- <string>-Xms128M</string>
- <string>-Xmx256M</string>
- </array>
-
- <key>MainClass</key>
- <string>processing.app.Base</string>
-
- <key>JVMVersion</key>
- <string>1.5*</string>
-
- <key>ClassPath</key>
- <!-- In 0149, removed /System/Library/Java from the CLASSPATH because
- it can cause problems if users have installed weird files there.
- http://dev.processing.org/bugs/show_bug.cgi?id=1045 -->
- <string>$JAVAROOT/pde.jar:$JAVAROOT/core.jar:$JAVAROOT/antlr.jar:$JAVAROOT/ecj.jar:$JAVAROOT/registry.jar:$JAVAROOT/quaqua.jar:$JAVAROOT/RXTXcomm.jar</string>
-
- <key>JVMArchs</key>
- <array>
- <!--<string>x86_64</string>--> <!-- currently no 64 bit support -->
- <string>i386</string>
- <string>ppc</string>
- </array>
-
- <!-- More properties can be found in http://developer.apple.com/releasenotes/Java/java141/system_properties/chapter_4_section_1.html#//apple_ref/doc/uid/TP30000285 -->
- <key>Properties</key>
- <dict>
- <!-- Pass the full path of Contents/Resources/Java to the PDE -->
- <key>javaroot</key>
- <string>$JAVAROOT</string>
-
- <!-- as of 1.0.8, it's safe to use this option again -->
- <key>apple.laf.useScreenMenuBar</key>
- <string>true</string>
-
- <key>apple.awt.showGrowBox</key>
- <string>false</string>
- <key>com.apple.smallTabs</key>
- <string>true</string>
- <key>apple.awt.Antialiasing</key>
- <string>false</string>
- <key>apple.awt.TextAntialiasing</key>
- <string>true</string>
- <key>com.apple.hwaccel</key>
- <string>true</string>
- <key>apple.awt.use-file-dialog-packages</key>
- <string>false</string>
- <key>apple.awt.graphics.UseQuartz</key>
- <string>true</string>
- </dict>
- </dict>
- </dict>
-</plist>
@@ -1 +0,0 @@
-APPLPde1
@@ -1,15 +0,0 @@
-/*
- AnalogReadSerial
- Reads an analog input on pin 0, prints the result to the serial monitor
-
- This example code is in the public domain.
- */
-
-void setup() {
- Serial.begin(9600);
-}
-
-void loop() {
- int sensorValue = analogRead(A0);
- Serial.println(sensorValue, DEC);
-}
@@ -1,9 +0,0 @@
-void setup() {
- // put your setup code here, to run once:
-
-}
-
-void loop() {
- // put your main code here, to run repeatedly:
-
-}
@@ -1,19 +0,0 @@
-/*
- Blink
- Turns on an LED on for one second, then off for one second, repeatedly.
-
- This example code is in the public domain.
- */
-
-void setup() {
- // initialize the digital pin as an output.
- // Pin 13 has an LED connected on most Arduino boards:
- pinMode(13, OUTPUT);
-}
-
-void loop() {
- digitalWrite(13, HIGH); // set the LED on
- delay(1000); // wait for a second
- digitalWrite(13, LOW); // set the LED off
- delay(1000); // wait for a second
-}
@@ -1,19 +0,0 @@
-/*
- DigitalReadSerial
- Reads a digital input on pin 2, prints the result to the serial monitor
-
- This example code is in the public domain.
- */
-
-void setup() {
- Serial.begin(9600);
- pinMode(2, INPUT);
-}
-
-void loop() {
- int sensorValue = digitalRead(2);
- Serial.println(sensorValue, DEC);
-}
-
-
-
@@ -1,31 +0,0 @@
-/*
- Fade
-
- This example shows how to fade an LED on pin 9
- using the analogWrite() function.
-
- This example code is in the public domain.
-
- */
-int brightness = 0; // how bright the LED is
-int fadeAmount = 5; // how many points to fade the LED by
-
-void setup() {
- // declare pin 9 to be an output:
- pinMode(9, OUTPUT);
-}
-
-void loop() {
- // set the brightness of pin 9:
- analogWrite(9, brightness);
-
- // change the brightness for next time through the loop:
- brightness = brightness + fadeAmount;
-
- // reverse the direction of the fading at the ends of the fade:
- if (brightness == 0 || brightness == 255) {
- fadeAmount = -fadeAmount ;
- }
- // wait for 30 milliseconds to see the dimming effect
- delay(30);
-}
@@ -1,65 +0,0 @@
-/* Blink without Delay
-
- Turns on and off a light emitting diode(LED) connected to a digital
- pin, without using the delay() function. This means that other code
- can run at the same time without being interrupted by the LED code.
-
- The circuit:
- * LED attached from pin 13 to ground.
- * Note: on most Arduinos, there is already an LED on the board
- that's attached to pin 13, so no hardware is needed for this example.
-
-
- created 2005
- by David A. Mellis
- modified 8 Feb 2010
- by Paul Stoffregen
-
- This example code is in the public domain.
-
-
- http://www.arduino.cc/en/Tutorial/BlinkWithoutDelay
- */
-
-// constants won't change. Used here to
-// set pin numbers:
-const int ledPin = 13; // the number of the LED pin
-
-// Variables will change:
-int ledState = LOW; // ledState used to set the LED
-long previousMillis = 0; // will store last time LED was updated
-
-// the follow variables is a long because the time, measured in miliseconds,
-// will quickly become a bigger number than can be stored in an int.
-long interval = 1000; // interval at which to blink (milliseconds)
-
-void setup() {
- // set the digital pin as output:
- pinMode(ledPin, OUTPUT);
-}
-
-void loop()
-{
- // here is where you'd put code that needs to be running all the time.
-
- // check to see if it's time to blink the LED; that is, if the
- // difference between the current time and last time you blinked
- // the LED is bigger than the interval at which you want to
- // blink the LED.
- unsigned long currentMillis = millis();
-
- if(currentMillis - previousMillis > interval) {
- // save the last time you blinked the LED
- previousMillis = currentMillis;
-
- // if the LED is off turn it on and vice-versa:
- if (ledState == LOW)
- ledState = HIGH;
- else
- ledState = LOW;
-
- // set the LED with the ledState of the variable:
- digitalWrite(ledPin, ledState);
- }
-}
-
Oops, something went wrong. Retry.

0 comments on commit 920212e

Please sign in to comment.