set visualbell set vb t_vb=上の設定をvimrcに書くとgVimで音は消えるが画面のフラッシュがオフにできない。
正しくはgvimrcに上記の設定を書く必要がある。
#以下アフィリエイト用の広告です
set visualbell set vb t_vb=上の設定をvimrcに書くとgVimで音は消えるが画面のフラッシュがオフにできない。
yum install uisp avr-libc avr-gcc-c++ rxtx avrdude次にここからMakefileの元と、ツールをダウンロード
wget http://mjo.tc/atelier/2009/02/acli/arduino-mk_0.8.tar.gz tar zxvf arduino-mk_0.8.tar.gz sudo cp arduino-mk-0.8/ard-parse-boards /usr/local/bin # Arduino.mkをどこか固定の場所に置く # 自分はスケッチの保存ディレクトリ直下にする cp arduino-mk-0.8/Arduino.mk/
cd
mkdir sample
cd sample
vi sample.ino
コードはこんなので十分
/*******************************************************************************
*
* @brief テスト用
*
******************************************************************************/
#define LED_PIN (2) //!< @brief LEDの接続ピン
#define DELAY_TIME (500) //!< @brief PWM待ち時間
/******************************************************************************
* @brief setup
* @param なし
* @retval なし
*****************************************************************************/
void setup()
{
pinMode(LED_PIN, OUTPUT);
}
/******************************************************************************
* @brief loop
* @param なし
* @retval なし
*****************************************************************************/
void loop()
{
digitalWrite(LED_PIN, HIGH);
delay(500);
digitalWrite(LED_PIN, LOW);
delay(500);
}
お次にMakefileを作る
ARDUINO_DIR = /usr/local/lib/arduino-1.0 ARDMK_DIR = /usr/local AVR_TOOLS_PATH = /usr/bin BOARD_TAG = uno AVRDUDE_CONF = $(ARDUINO_DIR)/hardware/tools/avrdude.conf AVRDUDE_ARD_PROGRAMMER = arduino MCU = atmega328p VARIANT = standard include ../Arduino.mkこれでmakeするとYAMLがどーたらこーたらとエラーがでるので、perl-YAML-Libを入れる sudo yum install perl-YAML 入れればmakeが通るようになるはず
sudo yum install -y arduino
sudo yum install -y java sudo yum install uisp avr-libc avr-gcc-c++ rxtx avrdude wget http://arduino.googlecode.com/files/arduino-1.0-linux64.tgz tar zxvf arduino-1.0-linux64.tgz cd arduino-1.0 ./arduino ←起動確認 rm -R __MACOSX/ ←arduinoチームはmacで開発しているようだ。不要なので削除 ./arduino ←年のため削除しても問題ないか起動確認
./arduino
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
check_group_uucp(): error testing lock file creation Error details:許可がありませんcheck_lock_status: No permission to create lock file.
please see: How can I use Lock Files with rxtx? in INSTALL
sudo ./arduino
[sudo] password for naoki:
Experimental: JNI_OnLoad called.
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version = RXTX-2.1-7