Skip to content

Instantly share code, notes, and snippets.

View chaeplin's full-sized avatar

chaeplin chaeplin

View GitHub Profile
@chaeplin
chaeplin / rawcode_LG_AC.txt
Last active August 27, 2015 21:10
rawcode / LG_AC
Press the button on the remote now - once only
Raw: (59) 3180, -9928, 532, -1532, 528, -520, 532, -532, 508, -516, 532, -1580, 500, -548, 504, -516, 532, -540, 512, -1548, 532, -1572, 508, -532, 508, -512, 536, -540, 508, -532, 500, -540, 500, -528, 532, -516, 532, -520, 532, -524, 536, -540, 508, -520, 532, -1596, 504, -536, 504, -1572, 508, -532, 508, -532, 508, -540, 508, -1552, 528,
11 1000 1000 1100 0000 0000 0101 0001
Press the button on the remote now - once only
Press the button on the remote now - once only
Raw: (59) 3208, -9944, 536, -1528, 532, -536, 504, -536, 504, -544, 504, -1560, 532, -536, 504, -536, 504, -540, 508, -532, 508, -532, 508, -540, 500, -540, 500, -520, 532, -532, 508, -524, 536, -508, 532, -1572, 536, -1592, 508, -512, 536, -532, 508, -540, 500, -520, 532, -532, 508, -532, 508, -1572, 508, -1576, 504, -516, 532, -536, 504,
@chaeplin
chaeplin / 8x8text.py
Last active August 29, 2015 14:18
Raspberry Pi and Adafruit 8x8 Matrix display / python
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import time
import Image
import ImageDraw
import ImageFont
from Adafruit_LED_Backpack import Matrix8x8
@chaeplin
chaeplin / 01.sensor.py
Created April 13, 2015 06:04
01.sensor.py
#!/usr/bin/env python2.7
import os, sys
import RPi.GPIO as g
from instapush.instapush import Instapush, App
import datetime
import time
#---------
insta = Instapush(user_token='token')
#!/usr/bin/env python2.7
# -*- coding: utf-8 -*-
import io
import sys
import time
import picamera
import picamera.array
import cv2
import numpy as np
@chaeplin
chaeplin / hx711test.log
Last active August 29, 2015 14:21
hx711 + esp-12, hx711 + uno/nano
1) hx711 + uno/nano
two reading: 0.692
two reading: 4.272
two reading: 4.260
two reading: 4.584
two reading: 4.688
two reading: 4.616
two reading: 4.702
two reading: 4.685
two reading: 4.689
@chaeplin
chaeplin / sample raw
Last active August 29, 2015 14:25
sample of Arduino_Record_Long_AirConditioner_Infrared_Signals_10 output
// on
Raw: (59) 8000, -4000, 520, -1564, 524, -524, 520, -540, 500, -536, 500, -1592, 500, -528, 520, -532, 520, -548, 500, -532, 520, -548, 500, -532, 520, -548, 500, -532, 520, -552, 496, -540, 500, -524, 520, -1584, 500, -1564, 520, -540, 500, -536, 500, -548, 500, -532, 520, -1600, 500, -540, 500, -1576, 500, -1588, 520, -1576, 500, -540, 500,
// off
Raw: (59) 8000, -4000, 524, -1544, 552, -496, 548, -512, 524, -500, 548, -1556, 528, -520, 524, -500, 548, -520, 528, -1532, 552, -1548, 524, -516, 524, -496, 552, -520, 524, -512, 528, -512, 524, -508, 548, -496, 552, -504, 548, -504, 552, -516, 504, -528, 552, -1572, 500, -536, 504, -1572, 500, -540, 500, -540, 496, -548, 520, -1540, 552,
@chaeplin
chaeplin / ir_LGAC.cpp
Last active August 29, 2015 14:25
ir_LGAC.cpp
#include "IRremote.h"
#include "IRremoteInt.h"
//==============================================================================
// L GGGG AAA CCCC
// L G A A C
// L G GG AAAAA C
// L G G A A C
// LLLLL GGG A A CCCC
//==============================================================================
@chaeplin
chaeplin / lgacir.py
Last active August 29, 2015 14:25
lgacir.py
# https://github.com/chaeplin/Arduino-IRremote/
# 02.test_i2c.py
import smbus
import time
bus = smbus.SMBus(1)
address = 0x07
def writeNumber(a, b ):
@chaeplin
chaeplin / esp8266_wifi_test.ino
Last active September 3, 2015 19:38
esp8266_wifi_test
#include <ESP8266WiFi.h>
//#include <IPAddress.h>
const char* ssid = "wifi_ssid";
const char* password = "wifi_password";
WiFiClient wifiClient;
long startMills;
void setup() {
@chaeplin
chaeplin / lgacir.ino
Last active September 8, 2015 16:04
lgacir.ino
https://github.com/z3t0/Arduino-IRremote/tree/master/examples/LGACSendDemo