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
| // Bounce.pde | |
| // -*- mode: C++ -*- | |
| // | |
| // Make a single stepper bounce from one limit to another | |
| // | |
| // Copyright (C) 2012 Mike McCauley | |
| // $Id: Random.pde,v 1.1 2011/01/05 01:51:01 mikem Exp mikem $ | |
| #include <AccelStepper.h> |
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 "ofApp.h" | |
| //-------------------------------------------------------------- | |
| void ofApp::setup(){ | |
| ofSetVerticalSync(true); | |
| ofBackground(255); | |
| ofSetSmoothLighting(true); | |
| // Box size | |
| box.set(100); |
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
| // zoomkat 12-25-13 serial servo test | |
| // type servo position 0 to 180 in serial monitor | |
| // or for writeMicroseconds, use a value like 1500 | |
| // Send an a to attach servo or d to detach servo | |
| // for IDE 1.0.5 and later | |
| // Powering a servo from the arduino usually *DOES NOT WORK*. | |
| #include <Servo.h> | |
| String readString; //String captured from serial port |
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 <SoftwareSerial.h> | |
| SoftwareSerial BTSerial(10, 11); // RX | TX | |
| /** | |
| * TX -> 10 | |
| * RX -> 11 | |
| * KEY -> 6 | |
| * | |
| * Set baudrate in Serial monitor to 38400!!! | |
| * Connect Module after arduino is started! |
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 <ESP8266WiFi.h> | |
| #include <PubSubClient.h> | |
| const char* ssid = "..."; | |
| const char* password = "..."; | |
| const char* mqtt_server = "..."; | |
| WiFiClient espClient; | |
| PubSubClient client(espClient); |
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
| public class Palette | |
| { | |
| public int[] colors; | |
| public int colorCount; | |
| public String title; | |
| public Palette(int[] colors, String title) | |
| { | |
| this.colors = colors; | |
| this.colorCount = colors.length; |
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 glob | |
| import json | |
| import os | |
| output_path = './outputs/img-samples/' | |
| log_file_name = 'dream_web_log.txt' | |
| full_log_path = output_path + log_file_name | |
| image_list = glob.glob(output_path + '*.png') | |
| def convert_log_to_json(log_file_path): |
OlderNewer