Skip to content

Instantly share code, notes, and snippets.

@nicklargent
nicklargent / DoorBotV1.ino
Created May 7, 2023 03:51
DoorBot Arduino Code
/*
* Learn how to use the OSEPP motor shield. It can drive 2 servos plus 4 dc motors or 2 steppers.
*
* I'm attempting to hook up one MG995 servo and one geared dc motor. The ones I intend to use for my doorbot.
*/
#include <AFMotor.h>
#include <Servo.h>
#include <IRremote.hpp>
@nicklargent
nicklargent / toggle_touchpad.rb
Created February 22, 2023 14:16
Script to Enable/Disable touchpad on my laptop
#!/usr/bin/ruby
def notify(msg)
`notify-send -t 1500 -i emblem-important-symbolic "#{msg}"`
end
puts "Toggling touchpad on/off"
x = `xinput list | grep -i touchpad`
@nicklargent
nicklargent / keybase.md
Last active January 31, 2020 19:15
keybase.md

Keybase proof

I hereby claim:

  • I am nicklargent on github.
  • I am nicklargent (https://keybase.io/nicklargent) on keybase.
  • I have a public key ASDwzeA3oOguH1ODxOrzRAn_KHGLnFCN6orYq6E_tGVTNwo

To claim this, I am signing this object: