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
#define F_CPU 16000000L | |
#include <avr/io.h> | |
#include <util/delay.h> | |
int | |
main (void) | |
{ | |
DDRB |= _BV(DDB0); |
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 <NewPing.h> | |
#include <VirtualWire.h> | |
#define RF_TX_PIN 9 // Pin 12 is the default sender pin so change it here. | |
#define SONAR_NUM 2 // Number of sensors. | |
#define MAX_DISTANCE 500 // Maximum distance (in cm) to ping. | |
#define PING_INTERVAL 33 // Milliseconds between sensor pings (29ms is about the min to avoid cross-sensor echo). |
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 pygame | |
from pygame.locals import * | |
class App: | |
def __init__(self): | |
pygame.init() | |
pygame.display.set_caption("Joystick Analyzer") | |
# Set up the joystick |
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
// https://github.com/netlabtoolkit/VarSpeedServo | |
#include <VarSpeedServo.h> | |
#define LEFT_ANKLE_CENTRE 90 | |
//Servo servo; | |
VarSpeedServo LeftHip; | |
VarSpeedServo LeftAnkle; |
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
// https://github.com/netlabtoolkit/VarSpeedServo | |
#include <VarSpeedServo.h> | |
#define LEFT_ANKLE_CENTRE 90 | |
//Servo servo; | |
VarSpeedServo LeftHip; | |
VarSpeedServo LeftAnkle; | |
VarSpeedServo RightHip; |
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
#define LED_LEFT_PIN 4 | |
#define LED_RIGHT_PIN 3 | |
#define PIR_LEFT_PIN 12 | |
#define PIR_RIGHT_PIN 11 | |
#define MOTOR_LEFT_PIN 6 | |
#define MOTOR_RIGHT_PIN 5 | |
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
/* DoorbellReceiver.ino - Detects signal from wireless doorbell. | |
Modified sketch (unknown licence) from Riva, to be found at | |
http://forum.arduino.cc/index.php?topic=110662.msg1094167#msg1094167 | |
DBAD Public Licence (http://www.dbad-license.org/) | |
crutzen.eu - July 2013 | |
Modified by Peter Clarke https://github.com/theapi | |
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
int i, good, k, j, incoming; | |
int inPin = 3; | |
int led = 13; | |
int steps = 8; | |
int on = 0; | |
byte data_in; | |
void setup() |
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 os | |
os.environ['SDL_VIDEODRIVER'] = 'dummy' | |
import pygame | |
import curses | |
# ----------------------------------------------------------------------------- | |
class curses_screen: | |
def __enter__(self): |
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
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
<script type='application/javascript' src='https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js'></script> | |
<script type='application/javascript'> | |
$(document).ready(function() { |