Skip to content

Instantly share code, notes, and snippets.

Elliot Williams hexagon5un

Block or report user

Report or block hexagon5un

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Makefile_ARM_core
## 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
View generate_template.py
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
View Tiny_Tachometer.c
/*******************************************************************************
TINY TACHOMETER
TACOMETRO C/ PIC12F675 E LCD (M�TODO LPLEX - 3 FIOS)
METODO: LEITURA DO PERIODO
@hexagon5un
hexagon5un / blinkLED_power_down_watchdog.c
Last active Oct 23, 2017
Low-power ATtiny45 code for short infrequent pulses
View blinkLED_power_down_watchdog.c
#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
@hexagon5un
hexagon5un / descriptor.hex
Created Mar 5, 2018
Device Descriptor of a Neonode AirModule
View descriptor.hex
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
View Makefile_ARM_Core
## 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
View Makefile_ARM_explicit
## 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
@hexagon5un
hexagon5un / cube.py
Created Nov 15, 2018
Quick demo code for exploring the Supplyfrrame Cube
View cube.py
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):
@hexagon5un
hexagon5un / hull_pcb_case.scad
Created Feb 4, 2018
Create a PCB Caddy with OpenSCAD's hull() Command
View hull_pcb_case.scad
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;
@hexagon5un
hexagon5un / grbl_settings_steps.txt
Created Apr 15, 2019
GRBL Configs for 1 step/mm Eggbot
View grbl_settings_steps.txt
$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
You can’t perform that action at this time.