출처 : Eclipse Kura™ Documentation The Pi4J Project 라즈베리파이2에 BLE 동글이와 BLE 스마트 버튼인 nurum으로 클릭 이벤트를 받아서 GPIO를 이용해서 LED를 컨트롤 해보았습니다. BleNurum class package bletest; import java.util.List; import org.eclipse.kura.KuraException; import org.eclipse.kura.bluetooth.BluetoothDevice; import org.eclipse.kura.bluetooth.BluetoothGatt; import org.eclipse.kura.bluetooth.BluetoothGattService; import org.eclipse.k..
출처 : mybatis-spring – 마이바티스 스프링 연동모듈 | 매퍼 주입DB 접속 설정(WebContent\WEB-INF\iot-datasource.xml)데이터베이스 접속 정보(JDBC) 설정 JDBC는 각 데이터베이스 마다 제공되고 있고, 연결방식도 달라 따로 검색이 필요 DB 접속정보 iot-servlet.xml에 추가 MyBatis Domain 패키지 생성MyBatis Mapper 패키지 생성MyBatis Service 패키지 생성MyBatis 설정 파일 작성(WebContent\WEB-INF\iot-mybatis.xml) user_info 예제 테이블 생성 CREATE TABLE `user_info` ( `user_id` varchar(20) NOT NULL, `password` varc..
프로젝트 생성test.jsp 결과 = web.xml 작성 iot 720 *.jsp UTF-8 /servlet/* UTF-8 index.html 스프링에서의 POST/GET 한글처리(web.xml)출처 : Spring MVC : 스프링에서의 POST/GET 한글처리 characterEncodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 characterEncodingFilter /* 스프링에서의 MVC 설정(web.xml)출처 : Spring MVC : @MVC와 DispatcherServlet에 대해서주소 *.iot는 DispatcherServlet이 실행iot-servlet.xml 찾음 iot org.spr..
마우스 반응 속도 개선 출처 : 라즈베리파이 무선마우스 속도 감도 문제 해결 cmdline.txt 파일의 첫줄에 usbhid.mousepoll=0 추가 / 디폴트가 8로 너무 빠르다 싶으면 숫자를 올려준다. $ sudo vi /boot/cmdline.txt 최신 버전으로 업데이트$ sudo apt-get update $ sudo apt-get upgrade XRDP 사용 출처 : Introducing PIXEL - Raspberry Pi Raspberry Pi Adds Beautiful "Pixel" Desktop Environment To ... 최신 라즈베리파이OS인 PIXEL의 경우 기본적으로 VNC서버가 설치되어 있으므로, XRDP를 사용하실 경우 VNC 서버를 삭제 해야됩니다. VNC서버 삭제 ..
출처 : Raspberry Pi to Arduino SPI Communication spi 확인 $ gpio load spi gpio: Unable to load/unload modules as this Pi has the device tree enabled. You need to run the raspi-config program (as root) and select the modules (SPI or I2C) that you wish to load/unload there and reboot. There is more information here: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=97314 배선 소스 - Arduino (Master)..
출처 : Raspberry Pi + Arduino + SPI - MitchTech | MitchTech 배선 소스 - Arduino (Slave) // Written by Nick Gammon // February 2011 /** * Send arbitrary number of bits at whatever clock rate (tested at 500 KHZ and 500 HZ). * This script will capture the SPI bytes, when a '\n' is recieved it will then output * the captured byte stream via the serial. */ #include char buf [100]; volatile byte pos; volati..
출처 : Analog Read Serial 배선 소스 /* AnalogReadSerial Reads an analog input on pin 0, prints the result to the serial monitor. Graphical representation is available using serial plotter (Tools > Serial Plotter menu) Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground. This example code is in the public domain. */ // the setup routine runs once when you press re..
출처 : Raspberry Pi SPI and I2C Tutorial Use the Adafruit PCA9685 with a Raspberry PI, in Java Raspberry PI to drive up to 16 servos JavaScript Robotics: Servo - PCA9685 I2C on Pi $ sudo raspi-config i2c device 활성화 $ sudo vi /etc/modules # /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines ..
- Total
- Today
- Yesterday
- ble
- Delphi
- SAS
- NDK
- oracle
- KOBA
- android
- Mac
- sas2009
- 서울오토살롱
- koba2010
- Spring
- 전예희
- 송주경
- 레이싱모델 익스트림 포토 페스티벌
- BPI-M4
- JavaScript
- 튜닝쇼 2008
- Xcode
- ffmpeg
- ubuntu
- MySQL
- Linux
- 지스타2007
- 동경
- Java
- Delphi Tip
- Spring MVC
- 일본여행
- flex
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |