Skip to content

Instantly share code, notes, and snippets.

View mnemocron's full-sized avatar
:octocat:
bonk!

Simon Burkhardt mnemocron

:octocat:
bonk!
View GitHub Profile
@mnemocron
mnemocron / paint_to_3dprinter.py
Last active May 15, 2020 16:19 — forked from nikhilkumarsingh/paint.py
A simple paint application using tkinter in Python 3 to generate GCode for your 3D printer
# -*- coding: utf-8 -*-
"""
Created on Mon Apr 29 12:09:09 2019
@author: simon
"""
from tkinter import *
from tkinter.colorchooser import askcolor
from pysvg import *

CLI cheat sheet

My personal cheatsheet for using the Linux command line.


Windows

Linux Subsystem

#include <Adafruit_NeoPixel.h>
#define PIN 6
#define NUM_LEDS 8
#define COLOR_PRESET 0x00F02000 // orange
// Parameter 1 = number of Pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs)