This is not directly related to the Rubber Ducky, but I figured with everyone's Teensy development skills someone might know the answer. I have a Teensy++ 2.0 and a MicroSD card slot purchased from PJRC, but I cannot seem to get the Teensy to see the SD card slot. The test code I am using is as follows...
#include <SD.h>
void setup() {
//Pause for 1 second
delay(1000);
//Needs to be set for the SD library to function
pinMode(10, OUTPUT);
//Check to make sure SD card is functioning, if not set red LED
if (!SD.begin(20)) {
analogWrite(16, 1023);
}
}
void loop() {
}
I have tried multiple variations, but all I get is the red LED (pin 16). Pins 20, 21, 22 and 23 are hooked to SS, SCLK, MOSI and MISO in that order and GND and 5v are also attached to the SD card reader. When testing voltages for the pins at the SD card reader and the Teensy I get...
SS - 5
SCLK - .02
MOSI - 5
MISO - 3.3
5v - 5
Any thoughts would be greatly appreciated... thanks!