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 <Wire.h> | |
| #include <Adafruit_PWMServoDriver.h> | |
| // called this way, it uses the default address 0x40 | |
| // you can also call it with a different address you want | |
| Adafruit_PWMServoDriver servo1 = Adafruit_PWMServoDriver(0x40); | |
| Adafruit_PWMServoDriver servo2 = Adafruit_PWMServoDriver(0x42); | |
| Adafruit_PWMServoDriver light1 = Adafruit_PWMServoDriver(0x43); | |
| Adafruit_PWMServoDriver light2 = Adafruit_PWMServoDriver(0x44); |
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
| long lastTime = 0; | |
| long minutes = 0; | |
| long hours = 0; | |
| void setup() { | |
| } | |
| void loop() { |
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
| import pygame | |
| from pygame.locals import * | |
| import cv2 | |
| import numpy as np | |
| import time | |
| import picamera | |
| import picamera.array | |
| screen_width = 640 |
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
| from pygame.locals import KEYDOWN, K_ESCAPE, K_q | |
| import pygame | |
| import cv2 | |
| import sys | |
| camera = cv2.VideoCapture(1) | |
| pygame.init() | |
| pygame.display.set_caption("OpenCV camera stream on Pygame") | |
| screen = pygame.display.set_mode([1280, 720]) |
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
| //Planet_Kronos_x8 The Kazimier Dezember 2015 | |
| //The MIT License (MIT) | |
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| #include <EthernetUdp.h> | |
| #include <OSCBundle.h> | |
| #define DEBUG 1 |
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
| import ddf.minim.*; | |
| import ddf.minim.ugens.*; | |
| Minim minim; | |
| AudioOutput out; | |
| float posx; | |
| float posy; | |
| float incx = 10; |
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
| float posx; | |
| float posy; | |
| float incx = 5; | |
| float incy = 5; | |
| //cointains the pad position and width and height | |
| float posXPad, posYPad; | |
| float padW, padH; |
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
| float posx; | |
| float posy; | |
| float scaleValue = 1; | |
| color backColor; | |
| int blink = 2; | |
| long lastTime = 0; | |
| void setup() { | |
| size(800, 500); | |
| frameRate(24); |
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
| float posx; | |
| float posy; | |
| float scaleValue = 1; | |
| color backColor; | |
| void setup() { | |
| size(800, 500); | |
| frameRate(24); | |
| posx = random(0, width); | |
| posy = random(0, height); |
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
| void setup() { | |
| size(800, 500); | |
| frameRate(24); | |
| } | |
| void draw() { | |
| background(255); | |
| drawRobot(1, 50,50); //calling the function with fixed parameters | |