This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
void beepx(int x, int d){ | |
for (int i = 0; i < x; i++){ | |
delay(d); | |
sparki.beep(); | |
} | |
} | |
void writeM(int s){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
void beepx(int x, int d){ | |
for (int i = 0; i < x; i++){ | |
delay(d); | |
sparki.beep(); | |
} | |
} | |
void servoLeftToRight(int degree, int d){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
void beepx(int x, int d){ | |
for (int i = 0; i < x; i++){ | |
delay(d); | |
sparki.beep(); | |
} | |
} | |
void gripperTestA(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
void beepx(int x, int d){ | |
for (int i = 0; i < x; i++){ | |
delay(d); | |
sparki.beep(); | |
} | |
} | |
void writeM(int s){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
class LightSense{ | |
int lightLeft; | |
int lightCenter; | |
int lightRight; | |
int del; | |
public: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
void infraredReflectanceSensorsTest(){ | |
sparki.clearLCD(); | |
sparki.print("Edge Left: "); | |
sparki.println(sparki.edgeLeft()); | |
sparki.print("Line Left: "); | |
sparki.println(sparki.lineLeft()); | |
sparki.print("Line Center: "); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
const byte LEFT = 0; | |
const byte RIGHT = 1; | |
class WallAvoidance{ | |
int distError; | |
int distTooClose; | |
int distBack; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
class EdgeAvoidance{ | |
int threshold; | |
int angle; | |
int distBack; | |
int leftEdge; | |
int rightEdge; | |
int wait; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
class EdgeAvoidance{ | |
int threshold; | |
int angle; | |
int distBack; | |
int leftEdge; | |
int rightEdge; | |
int wait; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Sparki.h> | |
class LineSense{ | |
int threshold; | |
public: | |
LineSense(int thresh){ | |
threshold = thresh; | |
} |
OlderNewer