Skip to content

Instantly share code, notes, and snippets.

@ulitiy
ulitiy / fpf12h.ino
Last active October 5, 2023 17:30
FatPetFeeder every 12 hours
#include <Servo.h>
#define second 1000
#define minute 60000
#define hour 3600000
Servo servo;
const int servoPin = 9;
const int buttonDispensePin = 7;
const int buttonMinusPin = 6;
const int buttonPlusPin = 8;
@ulitiy
ulitiy / FPFbat.ino
Created April 18, 2019 14:51
Fat Pet Feeder battery button version
#include <Servo.h>
#include <LowPower.h>
#include <EventManager.h>
#include <ThreeWire.h>
#include <RtcDS1302.h>
#define EI_NOTINT0
#define EI_NOTINT1
#define EI_ARDUINO_INTERRUPTED_PIN
#include <EnableInterrupt.h>
#include <Servo.h>
Servo myservo;
const int servoPin = 9;
const int buttonPin = 12;
const int ledPin = 13;
void setup() {
myservo.attach(servoPin);
#include <Servo.h>
Servo myservo;
const int servoPin = 9;
const int ledPin = 13;
void setup() {
myservo.attach(servoPin);
pinMode(ledPin, OUTPUT);