This file contains 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 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 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 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 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 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
from Tkinter import * | |
import Tkinter as tk | |
from PIL import Image, ImageTk | |
import os | |
root = tk.Tk() | |
frame = Frame(root,width=300,height=800) | |
frame.grid(row=0, column=0, padx=5, pady=5) | |
framespeed = Frame(root,width=300,height=800) | |
framespeed.grid(row=2, column=0, padx=5, pady=5) | |
framearm = Frame(root,width=300,height=800) |
This file contains 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> | |
#include <Arduino.h> | |
#include <SoftwareSerial.h> | |
#include <Wire.h> | |
#include "MatrixGraphics.h" | |
MeBluetooth bluetooth(PORT_5); | |
MeDCMotor MotorL(M1); | |
MeDCMotor MotorR(M2); |
This file contains 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
#-------------------------------------------------- | |
# Python program to interact with and | |
# control a MakeBlock Robot. | |
# Author: David Cotterill-Drew 2016 | |
# Email: [email protected] | |
#-------------------------------------------------- | |
# Imports | |
#-------------------------------------------------- | |
from bluepy.btle import * |
This file contains 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
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
button1 = pin5 | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |
This file contains 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
from microbit import * | |
# pin connections | |
rs = pin0 | |
enable = pin1 | |
datapins = [pin8, pin12, pin2, pin13] | |
# commands | |
LCD_CLEARDISPLAY = 0x01 | |
LCD_RETURNHOME = 0x02 |