Skip to content

Instantly share code, notes, and snippets.


Logxen logxen

View GitHub Profile
logxen / ft232h.cfg
Created Jun 22, 2017
Smoothie 2 Debug Toolchain for FT232H
View ft232h.cfg
interface ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_layout_init 0x0c08 0x0f1b
ftdi_layout_signal nTRST -data 0x0100 -noe 0x0400
ftdi_layout_signal nSRST -data 0x0200 -noe 0x0800
adapter_khz 1000
transport select jtag
View gist:652dce7db346a6cda3f9
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(Unknown Source)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(Unknown Source)
logxen / gist:10d8433bce103c28200d
Created Dec 21, 2014
thermocouple config block sample
View gist:10d8433bce103c28200d
# Hotend temperature control configuration
temperature_control.hotend.enable true # Whether to activate this ( "hotend" ) module at all.
# All configuration is ignored if false.
temperature_control.hotend.sensor max31855
temperature_control.hotend.spi_channel 0
temperature_control.hotend.chip_select_pin 0.16
temperature_control.hotend.set_m_code 104 #
temperature_control.hotend.set_and_wait_m_code 109 #
temperature_control.hotend.designator T #
logxen / gist:ad195ccd31914bab8869
Last active May 10, 2018
Edison Quickstart Guide for Octoprint and Smoothie
View gist:ad195ccd31914bab8869
# *** Documentation Links
Documentation list:
Edison Guide:
Mini Breakout Guide:
Mini Breakout Schematic:
Mini Breakout BoM:
Arduino Breakout Guide:
Arduino Breakout Schematic:
Arduino Breakout BoM:
BSP Guide (yocto build environment):
View gist:e8ed6cdad49695fb2f82
switch.freeze.enable true
switch.freeze.input_on_command M112
switch.freeze.output_on_command reset
logxen / gist:6a4f00bfd2a2268692d3
Created May 4, 2014
How to wire an 8-lead stepper
View gist:6a4f00bfd2a2268692d3
I. Find coils
-with the stepper unplugged, spin the motor by hand
-touch two leads together and see if it is harder to spin
-if it is harder to spin you found a coil
-keep testing the rest and find all 4 coils
II. Find pairs
-name coils 1 through 4 and make a note of their colors for later reference
-plug in coils 1 and 2 then plug in and run the motor to see if it spins
-change coil 2 for 3 then plug in and run the motor see if it spins
View gist:9535611
logxen@Eneiou-Mint ~/git/Smoothie $ make
make[1]: Entering directory `/home/logxen/git/Smoothie/mbed'
Building src
make[2]: Entering directory `/home/logxen/git/Smoothie/mbed/src'
make[3]: Entering directory `/home/logxen/git/Smoothie/mbed/src'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/logxen/git/Smoothie/mbed/src'
make[3]: Entering directory `/home/logxen/git/Smoothie/mbed/src'
View gist:9335769
// Compute extrusion speed based on parameters and gcode distance of travel
void ToolsManager::on_gcode_execute(void* argument){
Gcode* gcode = static_cast<Gcode*>(argument);
if( gcode->has_letter('T') ){
int new_tool = gcode->get_value('T');
bool make_move = false;
if ( gcode->has_letter('F') ){
make_move = true;
logxen / gist:8792351
Last active Aug 29, 2015
Smoothiepanel - Proposed simple comms
View gist:8792351
Command Description
# system functions
0x00 nop
0x01 read vid
0x02 read pid
0x03 read revision
0x04 read version
# lcd
View Switch plan
switch.fan1.enable true # this tells Smoothie to create a new switch named "fan1"
switch.fan1.startup_state false # this sets the initial state of the switch
switch.fan1.input_pin 2.11 # watch for changes on this pin
switch.fan1.input_pin_behavior toggle # valid options are "toggle" and "momentary"
switch.fan1.input_on_command M106 # any command that starts with this exact string turns this switch on
switch.fan1.input_off_command M107 # any command starting with this exact string turns off the switch
switch.fan1.output_pin 2.12! # this pin will follow the state of the switch
#switch.fan1.output_on_command M106 # this command is sent whenever the switch turns on
#switch.fan1.output_off_command M107 # this command is sent whenever the switch turns off