Skip to content

Instantly share code, notes, and snippets.

@songej
songej / Sublime_Text_3_Setting.json
Created April 8, 2015 07:00
Sublime Text 3 설정값
{
"bold_folder_labels": true,
"caret_style": "phase",
"color_scheme": "Packages/Theme - Spacegray/base16-eighties.dark.tmTheme",
"draw_minimap_border": true,
"draw_white_space": "all",
"fade_fold_buttons": false,
"font_face": "Source Code Pro",
"font_size": 18.0,
"highlight_line": true,
@songej
songej / Keypad_LCD.ino
Last active December 28, 2015 04:29
Keypad Display
#include <Keypad.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
const byte ROWS = 4;
const byte COLS = 4;
@songej
songej / Map_Analog_LCD.ino
Created November 13, 2013 02:51
Map the range of analog values & LCD serial display
#include <LiquidCrystal_I2C.h>
#include <Wire.h>
LiquidCrystal_I2C lcd(0x27,16,2);
const int SensorPin = 0;
int ledPin = 13;
void setup()
{
@songej
songej / Map_Analog.ino
Created November 13, 2013 02:50
Map the range of analog values
const int potPin = 0;
int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
Serial.begin(9600);
}
void loop() {
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);
void setup()
{
lcd.init();
lcd.backlight();
Serial.begin(9600);
@songej
songej / Keypad_Hello.ino
Created November 13, 2013 02:47
키패드 문자 시리얼 출력
#include <Keypad.h>
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'I','n','t','e'},
{'l','G','a','l'},
{'i','l','e','o'},
{'T','E','S','T'}
};
@songej
songej / LiquidCrystal_I2C_HelloWorld.ino
Created November 13, 2013 02:32
LiquidCrystal I2C LCD 문자출력
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2); // 16문자 2줄 0x27 주소설정
void setup()
{
lcd.init(); // LCD 초기화
lcd.init(); // 메세지 출력
lcd.backlight();
@songej
songej / Potentiometer.ino
Created November 13, 2013 02:31
가변저항으로 LED 깜박임 빈도 제어
int sensorPin = 0;
int ledPin = 13;
void setup()
{
pinMode(ledPin, OUTPUT);
}
void loop()
{
int sensorValue;