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
| #define HALF_RELEASE_PIN 2 | |
| #define FULL_RELEASE_PIN 3 | |
| #define INTERVAL_TIME 3000 | |
| // 回路図参考 | |
| // https://blog-imgs-43-origin.fc2.com/a/r/m/arms22/remote_release_sch.png | |
| unsigned long shoot_time; | |
| void setup() { |
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 processing.pdf.*; | |
| import java.util.Calendar; | |
| boolean savePDF = false; | |
| void setup() { | |
| //settings(); | |
| } | |
| void settings() { |
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
| int num = 50; | |
| PVector[] points = new PVector[num]; | |
| void setup() { | |
| size(320, 240); | |
| colorMode(HSB, 360, 100, 100, 100); | |
| noStroke(); | |
| for (int i = 0; i < points.length; i++) { | |
| float x = random(width); | |
| float y = random(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
| debug: | |
| KetaiSensor sensor: BMI160 accelerometer:1 | |
| KetaiSensor sensor: BMI160 gyroscope:4 | |
| KetaiSensor sensor: BMM150 magnetometer:2 | |
| KetaiSensor sensor: BMP280 pressure:6 | |
| KetaiSensor sensor: BMP280 temperature:65536 | |
| KetaiSensor sensor: RPR0521 Proximity Sensor:8 | |
| KetaiSensor sensor: RPR0521 Light Sensor:5 | |
| KetaiSensor sensor: Orientation:3 | |
| KetaiSensor sensor: BMI160 Step detector:18 |
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
| int depth = 6; | |
| float len = 150; | |
| color c2 = color(255,255,255,128); | |
| color c1 = color(0,0,0,255); | |
| void setup() { | |
| size(960, 540, P2D); | |
| //blendMode(ADD); | |
| colorMode(HSB, 360, 100, 100, 100); | |
| smooth(); |
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
| int depth = 2; | |
| float len = 150; | |
| void setup() { | |
| size(960, 540, P2D); | |
| blendMode(ADD); | |
| colorMode(HSB, 360, 100, 100, 100); | |
| smooth(); | |
| } | |
| void draw() { |
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
| # coding: UTF-8 | |
| import urllib.request | |
| from bs4 import BeautifulSoup | |
| # アクセスするURL | |
| url = "http://www.nikkei.com/" | |
| # URLにアクセスする htmlが帰ってくる → <html><head><title>経済、株価、ビジネス、政治のニュース:日経電子版</title></head><body.... | |
| html = urllib.request.urlopen(url) |
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 controlP5.*; | |
| ControlP5 cp5; | |
| float h; | |
| float theta; | |
| float sw = 0.5; | |
| float amp = 0.66; | |
| void setup() { | |
| size(960, 540, P3D); |
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 <avr/wdt.h> //library for watchdog | |
| #include <Wire.h> //library for i2c | |
| #include <rgb_lcd.h> //library for lcd display | |
| #include <SoftwareSerial.h> | |
| #include <MP3Player_KT403A.h> | |
| #include <stdio.h> | |
| #include <SoftwareSerial.h> | |
| #include <Ultrasonic.h> | |
| #include <TM1637.h> | |
| #include <CircularLED.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
| Mover m; | |
| ArrayList<Mover> movers = new ArrayList<Mover>(); | |
| void setup() { | |
| size(500, 500); | |
| colorMode(HSB, 360, 100, 100); | |
| noStroke(); | |
| for (int i = 0; i < 20; i++) { | |
| m = new Mover(random(width), random(height), 10); | |
| movers.add(m); |