Skip to content

Instantly share code, notes, and snippets.

View circuitBurn's full-sized avatar

Patrick Ryan circuitBurn

View GitHub Profile
#include <Arduino.h>
#include <MKRIMU.h>
#include <MKRMotorCarrier.h>
#define INTERRUPT_PIN 6
// Rx inputs
#define CH1_PIN 15 // Steering
#define CH2_PIN 16
#define CH3_PIN 17 // Throttle
#define CH4_PIN 20
@circuitBurn
circuitBurn / tail_oplog.py
Last active August 7, 2023 13:22
Use pymongo 3.0 to tail MongoDB's oplog
# Adapted from the example here: https://jira.mongodb.org/browse/PYTHON-735
# to work with pymongo 3.0
import pymongo
from pymongo.cursor import CursorType
c = pymongo.MongoClient()
# Uncomment this for master/slave.
oplog = c.local.oplog['$main']
@circuitBurn
circuitBurn / simple_metal.ini
Created March 27, 2015 17:41
Printrbot Simple Metal Cura configuration file.
[profile]
layer_height = 0.1
wall_thickness = 0.8
retraction_enable = True
solid_layer_thickness = 0.6
fill_density = 18
nozzle_size = 0.4
print_speed = 40
print_temperature = 210
print_temperature2 = 0