Skip to content

Instantly share code, notes, and snippets.

View effedebe's full-sized avatar
💭
I may be slow to respond.

François De Bue effedebe

💭
I may be slow to respond.
View GitHub Profile
@effedebe
effedebe / Pin_header.scad
Last active January 5, 2019 15:53
Library to build electronic pinheader(parameters) component with openscad
module Pin_header(pos = [0,0,0],rot = [0,0,0], col = 3, row = 1, horiz = false, female = false)
{
plastic_h = female ? 7.0 : 2.5;
plastic_tz = female ? 3.0 : 5.0;
metal_h = female ? 2.0 : 10.0;
metal_b = female ? 3.0 : 5.0;
translate (pos)
rotate(rot)
for (i=[0:abs(col)-1])
@effedebe
effedebe / serial.ino
Last active December 6, 2018 16:51
Serial com arduino to processing
/*ARDUINO*/
int b0, a1,a2,a3,a4,a5,a6;
int smooth_a1,smooth_a2,smooth_a3,smooth_a4,smooth_a5,smooth_a6;
int count[14];
void setup()
{
Serial.begin(9600); // Calculation of datas sent: 7 inputs x 24 bits (3 packages of 8bits) x 30hz (30 times / sec) = 5040 minimum; At 9600 baud, it is 57Hz
@effedebe
effedebe / gamepad.py
Last active September 20, 2021 09:52
Inputs library of python to use gamepath with some threads
# gamepad.py
#
# Copyright 2018 Francois De Bue
#
# This program show how work with game pad and a thread
# This was used to drive a robot with arduino
from threading import Thread
from inputs import get_gamepad