Start command:
ddrescue -d /dev/sda output.img output.mapfile
NOTE: If direct disc access is not available in your system, try raw devices.
#define SIO_C 2 | |
#define SIO_D 4 | |
#define SIO_CLOCK_DELAY 100 | |
void setup() | |
{ | |
pinMode(8,OUTPUT); | |
// while(1) | |
// { |
/****************************************************************** | |
* PID Simple Example (Augmented with Processing.org Communication) | |
* Version 0.3 | |
* by Brett Beauregard | |
* License: Creative-Commons Attribution Share-Alike | |
* April 2011 | |
******************************************************************/ | |
#include <PID_v1.h> | |
#include <MegaEncoderCounter.h> |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D4 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(16, PIN, NEO_GRB + NEO_KHZ800); |
#include <ESP8266WiFi.h> | |
#include <WiFiClient.h> | |
#include <ESP8266mDNS.h> | |
#include <WiFiUdp.h> | |
#include <ArduinoOTA.h> | |
#include <PubSubClient.h> | |
#include <Adafruit_NeoPixel.h> | |
#define PIN D8 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(6, PIN, NEO_GRB + NEO_KHZ800); |
#include <Encoder.h> | |
#define ENCODER_USE_INTERRUPTS | |
int driverEN = 11; //Enable input to the driver | |
int motorPWM1 = 8; //PWM signal to the motor pin of the driver | |
int motorPWM2 = 9; | |
Encoder myenc(3,7); | |
void setup(){ | |
Serial.begin(9600); |
const int phase1pin = 3; | |
const int phase2pin = 5; | |
const int phase3pin = 6; | |
float holdTime; | |
float targetSpeed; | |
unsigned long p1start, | |
p1end, | |
p2stafghfgfghrt, |
#include "I2Cdev.h" | |
#include "MPU6050_6Axis_MotionApps20.h" | |
#include "MPU6050.h" | |
#include "Wire.h" | |
// ========================================================================================== | |
// The following code was written by Jeff Rowberg to make the MPU6050 usable. | |
// ========================================================================================== |
// | |
// BCMotor.h | |
// RollingCube | |
// | |
// Created by Kris Temmerman on 03/10/15. | |
// | |
// | |
#ifndef BCMotorCube_h | |
#define BCMotorCube_h |
// Ben Fasoli | |
const int n = 6; | |
const int pins[n] = {A0, A1, A2, A3, A4, A5}; | |
const float slope[n] = {1, 1, 1, 1, 1, 1}; | |
const float intercept[n] = {0, 0, 0, 0, 0, 0}; | |
// Board reference voltage measured on aref pin | |
const float refVoltage = 4.93; // V |