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
$100=1.000 | |
$101=0.700 | |
$102=100.000 | |
$110=20000.000 | |
$111=20000.000 | |
$112=10000.000 | |
$120=1500.000 | |
$121=2000.000 | |
$122=1000.000 | |
$130=200.000 |
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
$100=1.000 | |
$101=0.700 | |
$102=100.000 | |
$110=20000.000 | |
$111=20000.000 | |
$112=10000.000 | |
$120=1500.000 | |
$121=2000.000 | |
$122=1000.000 | |
$130=200.000 |
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 serial | |
import os | |
s = serial.Serial("/dev/ttyUSB0", baudrate=115200, timeout=0.1) | |
# timeout: the cube seems to respond in 0.3 sec to "mtu" command | |
def send(command, s=s): | |
s.write(command + "\r") | |
def receive(s=s): |
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
001:018:000:DESCRIPTOR 1520104058.029510 | |
05 0D 09 04 A1 01 85 04 09 55 15 00 25 FF 75 08 | |
95 01 B1 02 85 03 09 54 81 02 09 56 27 FF FF 00 | |
00 75 10 55 0C 66 01 10 81 02 09 22 A1 02 09 42 | |
25 01 75 01 95 01 81 02 09 51 25 7F 75 07 95 01 | |
81 02 05 01 09 30 27 FF FF 00 00 75 10 95 01 81 | |
02 09 31 81 02 05 0D 55 0E 65 11 09 48 09 49 95 | |
02 81 02 C0 09 22 A1 02 09 42 25 01 75 01 95 01 | |
81 02 09 51 25 7F 75 07 95 01 81 02 05 01 09 30 | |
27 FF FF 00 00 75 10 95 01 81 02 09 31 81 02 05 |
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
module multiHull(){ | |
for (i = [1 : $children-1]) | |
hull(){ | |
children(0); | |
children(i); | |
} | |
} | |
module sequentialHull(){ | |
for (i = [0: $children-2]) |
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
use <hull.scad> | |
w = 66.35; | |
l = 79; | |
pin_locations = [ [-w/2, -l/2, 0], [-w/2, l/2, 0], | |
[ w/2, -l/2, 0], [ w/2, l/2, 0] ]; | |
thickness = 1; | |
$fn = 24; |
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 <avr/io.h> | |
#include <avr/sleep.h> | |
#include <avr/power.h> | |
#include <avr/wdt.h> | |
#include <avr/interrupt.h> | |
#include <util/delay.h> | |
#define LED PB4 | |
#define LED_DDR DDRB | |
#define LED_PORT PORTB |
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
/******************************************************************************* | |
TINY TACHOMETER | |
TACOMETRO C/ PIC12F675 E LCD (M�TODO LPLEX - 3 FIOS) | |
METODO: LEITURA DO PERIODO |
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
## This is where you want the entire toolchain to live | |
## You should run this script from within the destination directory, or | |
## redefine the BASE variable to fit your lifestyle. | |
BASE=$(pwd) | |
echo | |
echo [getESP32.sh]: Checking for system prerequisites | |
[[ $(which pacman) ]] && sudo pacman -S --needed gcc git make ncurses flex bison gperf python2-pyserial wget 2>/dev/null | |
[[ $(which apt-get) ]] && sudo apt-get install git make libncurses-dev flex bison gperf python python-serial wget 2>/dev/null |
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
## Creates a gamma-corrected lookup table | |
import math | |
def gamma(nsteps, gamma): | |
gammaedUp = [math.pow(x, gamma) for x in range(nsteps)] | |
return [x/max(gammaedUp) for x in gammaedUp] | |
def rounder(topValue, gammas): | |
return [min(topValue, round(x*topValue)) for x in gammas] |