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
#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
#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) "); |
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() { | |
Serial.begin(9600); | |
} | |
void loop() { | |
Serial.print(1); Serial.print("\t"); // space, tab, comma | |
Serial.print(2); Serial.print("\t"); | |
Serial.print(3); | |
Serial.println(); | |
} |
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 <SoftwareSerial.h> | |
#define R 9 | |
#define G 10 | |
#define B 11 | |
SoftwareSerial mySerial(2, 3); | |
int pState = HIGH; | |
byte id = 0; |
OlderNewer