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 | |
import re | |
import shutil | |
import glob | |
## List of the STM32 chips supported by OpenCM3 | |
chips = ["f0", "f1", "f3", "f4", "f2", "l0", "l1"] | |
## Representative projects for each chip | |
## These really only vary in their linker files and peripherals | |
## Look at the examples (below) for specifics |
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
## Cross-compilation commands | |
CC = arm-none-eabi-gcc | |
LD = arm-none-eabi-gcc | |
AR = arm-none-eabi-ar | |
AS = arm-none-eabi-as | |
OBJCOPY = arm-none-eabi-objcopy | |
OBJDUMP = arm-none-eabi-objdump | |
SIZE = arm-none-eabi-size | |
# our code |
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
## Cross-compilation commands | |
CC = arm-none-eabi-gcc | |
LD = arm-none-eabi-gcc | |
AR = arm-none-eabi-ar | |
AS = arm-none-eabi-as | |
OBJCOPY = arm-none-eabi-objcopy | |
OBJDUMP = arm-none-eabi-objdump | |
SIZE = arm-none-eabi-size | |
# our code |
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
## Cross-compilation commands | |
CC = arm-none-eabi-gcc | |
LD = arm-none-eabi-gcc | |
AR = arm-none-eabi-ar | |
AS = arm-none-eabi-as | |
OBJCOPY = arm-none-eabi-objcopy | |
OBJDUMP = arm-none-eabi-objdump | |
SIZE = arm-none-eabi-size | |
# our code |
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] |
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
/******************************************************************************* | |
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
#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
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
module multiHull(){ | |
for (i = [1 : $children-1]) | |
hull(){ | |
children(0); | |
children(i); | |
} | |
} | |
module sequentialHull(){ | |
for (i = [0: $children-2]) |
OlderNewer