This post for Kiheon, Han.
This file contains 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 light = 0; | |
void setup() {} | |
void loop() { | |
analogWrite(9, light); | |
light = light + 1; | |
if(light > 255){ | |
light = 0; |
This file contains 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
set AppleScript's text item delimiters to ".pdf" | |
repeat while true | |
tell application "System Events" | |
tell process "Your Application" | |
if exists window "Print" then | |
tell window "Print" | |
if not (exists sheet 1) then | |
click menu button "PDF" | |
repeat until exists menu item "Save as PDF…" of menu 1 of menu button "PDF" |
This file contains 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 BLYNK_PRINT Serial | |
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <BlynkSimpleEsp8266.h> | |
#include <Wire.h> | |
#include "Adafruit_SHT31.h" | |
char auth[] = "YourToken"; | |
char ssid[] = "YourWiFiName"; |
This file contains 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
*/node_modules/ | |
*/build/ | |
*/.git/ | |
.gitignore | |
Dockerfile | |
.editorconfig |
This file contains 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 <pm2008_i2c.h> | |
PM2008_I2C pm2008_i2c; | |
void setup() { | |
pm2008_i2c.begin(); | |
Serial.begin(9600); | |
pm2008_i2c.command(); | |
delay(1000); |
This file contains 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
#!/bin/sh | |
set -e | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL https://get.docker.com -o get-docker.sh | |
# $ sh get-docker.sh | |
# | |
# For test builds (ie. release candidates): | |
# $ curl -fsSL https://test.docker.com -o test-docker.sh | |
# $ sh test-docker.sh |
This file contains 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 <pm2008_i2c.h> | |
PM2008_I2C pm2008_i2c; | |
#define RED 4 | |
#define YELLOW 5 | |
#define GREEN 6 | |
#define BLUE 7 | |
void setup() { |
This file contains 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() { | |
Serial1.begin(9600); | |
} | |
void loop() { | |
Serial1.println("Hello world"); | |
if(Serial1.available()){ | |
Serial1.print("Reply) "); |
OlderNewer