journal:201307
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| journal:201307 [2013/07/21 04:11] – 220.86.36.224 | journal:201307 [2018/07/18 14:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 459: | Line 459: | ||
| * https:// | * https:// | ||
| * https:// | * https:// | ||
| + | |||
| + | 제용형 google plus보다가 잡스의 메시지 영상을 보았다. next시절 컴퓨터로 교육을 바꾸고 싶었던 비전. 여러가지가 생각이 들면서, 앨런케이, | ||
| + | |||
| + | > 당신의 인생이라고 일컷는 모든것(주변의)이 당신보다 똑똑하지 않은 사람들에 의해 만들어졌다는 것과 그것이 당신에게 미치는 영향을 생각 해보자. 당신이 영향을 미칠 수 있고, 다른사람들이 이용할 수 있는 당신만의 무엇가를 만들 수 있다는 사실 입니다. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | 쿼드콥터 콘트롤러 autopilot px4 | ||
| + | |||
| + | 요게 갑이구만! | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | avrdude in coffeescript. | ||
| + | |||
| + | stk500 프로토콜이 복잡한게 아니구만! | ||
| + | |||
| + | 출처: http:// | ||
| + | |||
| + | <code coffeescript> | ||
| + | |||
| + | {SerialPort} = require ' | ||
| + | |||
| + | pageBytes = 128 | ||
| + | |||
| + | avrUploader = (bytes, tty, cb) -> | ||
| + | serial = new SerialPort tty, baudrate: 115200 | ||
| + | |||
| + | done = (err) -> | ||
| + | serial.close -> | ||
| + | cb err | ||
| + | |||
| + | timer = null | ||
| + | state = offset = 0 | ||
| + | reply = '' | ||
| + | |||
| + | states = [ # Finite State Machine, one function per state | ||
| + | -> | ||
| + | ['0 '] | ||
| + | -> | ||
| + | buf = new Buffer(20) | ||
| + | buf.fill 0 | ||
| + | buf.writeInt16BE pageBytes, 12 | ||
| + | [' | ||
| + | -> | ||
| + | ['P '] | ||
| + | -> | ||
| + | state += 1 if offset >= bytes.length | ||
| + | buf = new Buffer(2) | ||
| + | buf.writeInt16LE offset >> 1, 0 | ||
| + | [' | ||
| + | -> | ||
| + | state -= 2 | ||
| + | count = Math.min bytes.length - offset, pageBytes | ||
| + | buf = new Buffer(2) | ||
| + | buf.writeInt16BE count, 0 | ||
| + | pos = offset | ||
| + | offset += count | ||
| + | [' | ||
| + | -> | ||
| + | ['Q '] | ||
| + | ] | ||
| + | |||
| + | next = -> | ||
| + | if state < states.length | ||
| + | serial.write x for x in states[state++]() | ||
| + | serial.flush() | ||
| + | reply = '' | ||
| + | timer = setTimeout (-> done state), 300 | ||
| + | else | ||
| + | done() | ||
| + | |||
| + | serial.on ' | ||
| + | |||
| + | serial.on ' | ||
| + | |||
| + | serial.on ' | ||
| + | reply += data | ||
| + | if reply.slice(-2) is ' | ||
| + | clearTimeout timer | ||
| + | next() | ||
| + | | ||
| + | #And here’s a little test which uploads the RF12demo sketch into a JeeNode over serial: | ||
| + | |||
| + | fs = require ' | ||
| + | hex = fs.readFileSync '/ | ||
| + | |||
| + | hexToBin = (code) -> | ||
| + | data = '' | ||
| + | for line in code.split ' | ||
| + | count = parseInt line.slice(1, | ||
| + | if count and line.slice(7, | ||
| + | data += line.slice 9, 9 + 2 * count | ||
| + | new Buffer(data, | ||
| + | |||
| + | avrUploader hexToBin(hex), | ||
| + | console.error ' | ||
| + | console.log hexToBin(hex).length | ||
| + | | ||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | ====== 7월 31일 ====== | ||
| + | |||
| + | pick and place 기기 재료. | ||
| + | |||
| + | {{http:// | ||
| + | |||
| + | 출처: http:// | ||
| + | |||
| + | 참고: | ||
| + | - http:// | ||
| + | - http:// | ||
| + | |||
| + | dxf 파일에 재단할 내용 다 나옴. | ||
| + | |||
| + | 재료 | ||
| + | - Manual pick and place http:// | ||
| + | - USB Digital 200x Magnifier http:// | ||
| + | - Vacuum Pump with foot switch for Aquarium | ||
| + | - 패달 스위치 : http:// | ||
| + | - 바늘 2 종류 (좀더 작은거 집을려면 작은 바늘이 있어야 하네) | ||
| + | - part list http:// | ||
| + | |||
| + | 오사카의 발판 스위치회사: | ||
| + | http:// | ||
| + | |||
| + | |||
| + | {{http:// | ||
journal/201307.1374379877.txt.gz · Last modified: 2018/07/18 14:09 (external edit)