Skip to content

Instantly share code, notes, and snippets.

@AxelVoitier
AxelVoitier / Configuration.h
Created May 1, 2018 16:33
Marlin configuration file for Delta printer 3KU K3000, 2016 version (stock), for Marlin bugfix-1.1.x version (da9f386, 1st of May 2018)
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@AxelVoitier
AxelVoitier / test_libc.py
Created December 10, 2015 23:17
Test getting a structure from libc using function getifaddrs (original code from zeromq/pyre)
from ctypes import c_char, c_char_p
from ctypes import c_uint, c_uint8, c_uint16, c_uint32
from ctypes import c_short, c_ushort
from ctypes import c_void_p, pointer
from ctypes import CDLL, Structure, Union
from sys import platform
if platform.startswith("win") and sys.version.startswith("2"):
import win_inet_pton
from socket import AF_INET, AF_INET6, inet_ntop