Skip to content

Instantly share code, notes, and snippets.

View Morendil's full-sized avatar

Laurent Bossavit Morendil

View GitHub Profile
@Morendil
Morendil / myprobe.scad
Created June 26, 2014 10:27
Compact Hall Effect Probe
// pcb dims
width = 18;
hwidth = 7.65;
swidth = 4;
module box() {
difference() {
boxshell();
translate([(20-swidth*1.1)/2,3,1.5+1.6])
@Morendil
Morendil / quad.arduino
Created June 26, 2014 10:17
Quadruped code
#include <Servo.h>
struct ServoMove {
char cmd[3];
int angle;
int wait;
};
Servo joints[8];
// Front then back; right then left; hip then leg
#include <Servo.h>
Servo gripper;
Servo arm;
int pos = 120;
int target = pos;
void setup()
{
@Morendil
Morendil / PyPad.py
Last active December 17, 2015 00:28
Pythonista code to grab a gravity vector and babble it to an HTTP endpoint
from urllib2 import urlopen
from time import sleep
from scene import gravity, Scene, run
class MyScene (Scene):
def setup(self):
self.frames = 0
def draw(self):
self.frames += 1
if (self.frames % 30) == 0: