mirror of
https://gitlab.dit.htwk-leipzig.de/phillip.kuehne/dezibot.git
synced 2025-07-04 09:41:43 +02:00
Merge branch 'feature/#5-motion' into feature/#16-find-a-friend
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
#include <Dezibot.h>
|
||||
|
||||
Dezibot dezibot = Dezibot();
|
||||
const uint8_t MYFOO = 10;
|
||||
void setup() {
|
||||
dezibot.begin();
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
dezibot.multiColorLight.setLed(TOP_LEFT,0x000000FF);
|
||||
dezibot.multiColorLight.setLed(TOP_RIGHT,dezibot.multiColorLight.color(0,100,0));
|
||||
dezibot.multiColorLight.blink(10,0x00FF0000,BOTTOM,500);
|
||||
|
||||
delay(1000);
|
||||
dezibot.multiColorLight.turnOffLed(ALL);
|
||||
delay(1000);
|
||||
}
|
19
example/example/example.ino
Normal file
19
example/example/example.ino
Normal file
@ -0,0 +1,19 @@
|
||||
#include <Dezibot.h>
|
||||
|
||||
Dezibot dezibot = Dezibot();
|
||||
const uint8_t MYFOO = 10;
|
||||
void setup() {
|
||||
dezibot.begin();
|
||||
|
||||
}
|
||||
|
||||
void loop() {
|
||||
dezibot.motion.move();
|
||||
delay(1000);
|
||||
dezibot.motion.rotateAntiClockwise();
|
||||
delay(1000);
|
||||
dezibot.motion.rotateClockwise();
|
||||
delay(1000);
|
||||
dezibot.motion.stop();
|
||||
delay(1000);
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
#include "Dezibot.h"
|
||||
|
||||
int main(){
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user