Skip to content

Instantly share code, notes, and snippets.

@hdo
hdo / van_schneidbrett_konturen.dxf
Created March 25, 2021 05:47
Konturen Schneidbrett Knaus Boxstar
0
SECTION
2
HEADER
9
$INSUNITS
70
4
9
$ACADVER
@hdo
hdo / van_bed_mount.svg
Created November 29, 2020 16:23
Haken für Tischaufnahme im Kastenwagen
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hdo
hdo / grbl.config
Created August 8, 2020 10:58
Current GRBL settings / configuration (2020-08-08)
Grbl 1.1g ['$' for help]
ok
$0=40
$1=25
$2=0
$3=1
$4=0
$5=0
$6=0
$10=3
acl SSL_ports port 443
acl Safe_ports port 80 # http
acl Safe_ports port 21 # ftp
acl Safe_ports port 443 # https
acl Safe_ports port 70 # gopher
acl Safe_ports port 210 # wais
acl Safe_ports port 1025-65535 # unregistered ports
acl Safe_ports port 280 # http-mgmt
acl Safe_ports port 488 # gss-http
acl Safe_ports port 591 # filemaker
@hdo
hdo / jumpnow_rpi0_minimal_defconfig
Created July 16, 2018 12:08
Minimal Buildroot configuration file for Raspbery Pi Zero based on https://github.com/jumpnow/buildroot
BR2_arm=y
BR2_arm1176jzf_s=y
BR2_DL_DIR="$(HOME)/dl"
BR2_CCACHE=y
BR2_TOOLCHAIN_BUILDROOT_GLIBC=y
BR2_KERNEL_HEADERS_4_14=y
BR2_BINUTILS_VERSION_2_30_X=y
BR2_GCC_VERSION_8_X=y
BR2_TOOLCHAIN_BUILDROOT_CXX=y
BR2_TARGET_GENERIC_HOSTNAME="rpi0"
@hdo
hdo / xboxdrv.ini
Created June 28, 2018 08:49
Simple Mapping file for bCNC and XBOX Wireless Controller
[xboxdrv]
#evdev=/dev/input/js0
#silent=true
[ui-buttonmap]
a=KEY_A
b=KEY_B
du=KEY_UP
dd=KEY_DOWN
dl=KEY_LEFT
dr=KEY_RIGHT
@hdo
hdo / xhc-hb04.cc
Created June 22, 2018 12:18
Simple xhc-hb04 (wireless cnc pendant) test program (based on linuxcnc addon)
/*
XHC-HB04 Wireless MPG pendant LinuxCNC HAL module for LinuxCNC
Copyright (C) 2013 Frederic Rible (frible@teaser.fr)
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 3 of the License, or (at your option) any later version.
@hdo
hdo / serial.c
Created August 27, 2017 15:08
Enable GRBL second serial port for receiving commands on Arduino Mega Board
// original see: github.com/gnea/grbl-Mega
#include "grbl.h"
...
void serial_init()
{
// Set baud rate
@hdo
hdo / grbl_jog_v2.py
Created August 27, 2017 09:01
Simple pygame script to test new jog feature in GRBL v1.1 (now including X,Y and Z axis)
# requires pygame and pyserial
import pygame
import os
import serial
import time
class KeyButton(object):
@hdo
hdo / grbl_jog.py
Created August 27, 2017 07:48
Simple GRBL Jog test script
import pygame
import os
import serial
import time
def create_screen():
if os.name == "nt":
return pygame.display.set_mode((320, 200))
else: