Skip to content

Instantly share code, notes, and snippets.

@harelabb
harelabb / py_exec_flows.json
Created July 25, 2020 16:50
Node-red flow to start/stop program from dashboard
[
{
"id": "47ae11e2.286f3",
"type": "tab",
"label": "PythonExec",
"disabled": false,
"info": ""
},
{
"id": "b7f441c7.fc588",
#include <SerialStepper.h>
#include <arduinostepper.h>
// Define 3 steppers
Stepper steppers[3];
// each using an ArduinoStepper control
ArduinoStepperControl stepper_ctl[] = {
ArduinoStepperControl {34, 36, 38, 40}, // the pins
ArduinoStepperControl {35, 37, 39, 41},
@harelabb
harelabb / eepromrf.ino
Created December 14, 2019 21:15
Arduino Mega sketch to program EEPROM for RC switch code
#include <Arduino.h>
constexpr bool dry_run {false};
constexpr bool do_program {true};
// codes
constexpr uint32_t on_code {38909585};
constexpr uint32_t off_code {39916949};
// protocol