This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uint8_t Bitmap_EyesFR[16]= | |
{ | |
0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00,0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00 | |
}; | |
//int move_times = sizeof(string_data)*6; | |
uint8_t Bitmap_EyesTR[16]= | |
{ | |
0x00,0x3c,0x42,0x42,0x72,0x72,0x3c,0x00,0x00,0x3c,0x42,0x42,0x72,0x72,0x3c,0x00 | |
}; | |
uint8_t Bitmap_EyesBlink[16]= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Wire.h" | |
#include "MeOrion.h" | |
#include "Adafruit_PWMServoDriver.h" | |
#include "IRremote.h" | |
#include "MatrixGraphics.h" | |
Adafruit_PWMServoDriver pwm = Adafruit_PWMServoDriver(0x41); | |
MeLEDMatrix ledMx(PORT_1); | |
int IR_PIN = 8; | |
int b=random(300,10000); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "MeOrion.h" | |
MeLEDMatrix ledMx(PORT_1); | |
uint8_t Bitmap_EyesFR[16]= | |
{ | |
0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00,0x00,0x3c,0x42,0x5a,0x5a,0x42,0x3c,0x00 | |
}; | |
//int move_times = sizeof(string_data)*6; | |
uint8_t Bitmap_EyesTR[16]= |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <ESP8266WiFi.h> | |
#include <WString.h> | |
#include <DNSServer.h> | |
#include <ESP8266WebServer.h> | |
#include <WiFiManager.h> | |
#include "DHT.h" | |
#define DHTPIN D3 // what pin we're connected to | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import wx | |
import RPi.GPIO as GPIO | |
# Initialise GPIO's for Rover | |
GPIO.setwarnings(False) | |
PINS=[18,23,24,25] | |
GPIO.setmode(GPIO.BCM) | |
GPIO.setup(PINS,GPIO.OUT) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<launch> | |
<!-- | |
To distinguish between the cases where the rgb image is | |
1280x1024 versus 640x480. This affects the pipeline. | |
--> | |
<arg name="high_res_rgb" default="true"/> | |
<arg name="cloud_input_ns" value="camera/rgb_downsampled" | |
if="$(arg high_res_rgb)"/> | |
<arg name="cloud_input_ns" value="camera/rgb" unless="$(arg high_res_rgb)"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Servo Servo1; | |
Servo Servo2; | |
Servo Servo3; | |
Servo Servo4; | |
void setup() { | |
Servo1.attach(D0); | |
Servo2.attach(D1); | |
Servo3.attach(D2); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project created by David Cotterill-Drew- Just to learn and have fun! | |
// 05/04/2016 23:08 GMT | |
#include "math.h" // needed for 'pow' and 'floor' | |
double fuelval; // Variable to hold voltage measurement | |
double fuelper; // Variable to hold battery charge as a percentage | |
int mic = A0; // Output of mic connected to A0 - ADC pin | |
int level=0; // Variavle to hold sound output measurement |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Project created by David Cotterill-Drew- Just to learn and have fun! | |
// 05/04/2016 23:08 GMT | |
#include "application.h" | |
double fuelval; | |
double fuelper; | |
FuelGauge fuel; | |
void setup() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
////////////////////////////////////////////// | |
// CAT AND MOUSE GAME | |
// Author: Mike Parks | |
// | |
////////////////////////////////////////////// | |
// INCLUDE LIBRARIES | |
#include <Esplora.h> | |
// DECLARE GLOBAL VARIABLES |