mirror of
https://github.com/usatiuk/EggbotWireless.git
synced 2025-10-27 09:17:48 +01:00
change crystal to 16MHz
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
#include "Pen.h"
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <Servo.h>
|
||||
|
||||
#include "Pen.h"
|
||||
|
||||
Pen::Pen(int pin, int posEngaged, int posDisengaged)
|
||||
: posEngaged(posEngaged), posDisengaged(posDisengaged), pin(pin) {}
|
||||
|
||||
void Pen::engage() {
|
||||
if (!engaged) {
|
||||
for(int i = posDisengaged; i > posEngaged; i--) {
|
||||
for (int i = posDisengaged; i > posEngaged; i--) {
|
||||
servo.write(i);
|
||||
delay(5);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user