Skip to content

Instantly share code, notes, and snippets.

@neosarchizo
neosarchizo / control_KP39EM2_006_Stepper_Motor_by_Arduino.md
Last active September 25, 2015 14:23
Control KP39EM2-006 Stepper Motor by Arduino

Control KP39EM2-006 Stepper Motor by Arduino

This post for Kiheon, Han.

Schematic

Imgur

Arduino

@neosarchizo
neosarchizo / control_light.ino
Created October 11, 2016 06:02
[자유학기제 - 아두이노] LED 밝기 조절하기
int light = 0;
void setup() {}
void loop() {
analogWrite(9, light);
light = light + 1;
if(light > 255){
light = 0;
@neosarchizo
neosarchizo / my-programs-in-mac-book.md
Last active October 12, 2017 12:55
My programs in mac book

My programs in mac book

I wrote this post because I will remember applications to install after format mac book.

  • Chrome
  • Adobe Air : This must be installed before installing Adobe CC.
  • Adobe CC : This must be installed before upgrading el capitan.
  • Java
  • N File Downloader
  • Alzip
  • Paragon NTFS
@neosarchizo
neosarchizo / save_as_pdf.scpt
Created March 5, 2017 14:22
Save as pdf by applescript
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"
@neosarchizo
neosarchizo / my_home_th_logger.ino
Last active July 26, 2018 10:35
My home TH logger
#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";
@neosarchizo
neosarchizo / .dockerignore
Created October 10, 2018 00:28
Dockerfile and .dockerignore for create-react-app
*/node_modules/
*/build/
*/.git/
.gitignore
Dockerfile
.editorconfig
@neosarchizo
neosarchizo / pm2008_led.ino
Created December 7, 2018 01:23
[디바이스마트 매거진] PM2008 LED 모니터
#include <pm2008_i2c.h>
PM2008_I2C pm2008_i2c;
void setup() {
pm2008_i2c.begin();
Serial.begin(9600);
pm2008_i2c.command();
delay(1000);
@neosarchizo
neosarchizo / get-docker.sh
Created March 20, 2019 07:50
get-docker.sh for Raspberry Pi Zero W
#!/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
@neosarchizo
neosarchizo / simple_monitor.ino
Created September 2, 2019 07:04
[새로운 시작][아두이노] PM2008 간단 모니터
#include <pm2008_i2c.h>
PM2008_I2C pm2008_i2c;
#define RED 4
#define YELLOW 5
#define GREEN 6
#define BLUE 7
void setup() {
@neosarchizo
neosarchizo / 3v_uart_test.ino
Last active October 3, 2019 07:49
[디바이스마트] USB to UART TTL 테스트 코드
void setup() {
Serial1.begin(9600);
}
void loop() {
Serial1.println("Hello world");
if(Serial1.available()){
Serial1.print("Reply) ");