GR-SAKURA
GR-KURUMI
GR-COTTON
GR-CITRUS
GR-PEACH
GR-KAEDE
GR-ADZUKI
GR-LYCHEE
GR-ROSE
GR-MANGO(*)
SNShield
Web Compiler
IDE for GR
TOPPERS関連
女子美コラボ
その他
※プロデューサミーティング中
作り方使い方資料
イベント関連
作品記事
体験記事
ライブラリ
ツール
その他・過去ファイル
Arduino コミュニティには、
LedControl: a Arduino library for the MAX7221 and MAX7219
( http://playground.arduino.cc/Main/LedControl)
があります。これを、GR-KURUMIで使用したいのですが、ライブラリをインストールすると下記のようなエラーが発生します:
LedControl.cpp: In member function 'void LedControl::setDigit(int, int, byte, boolean)':LedControl.cpp:164:43: error: 'pgm_read_byte_near' was not declared in this scope v=pgm_read_byte_near(charTable + value); ^LedControl.cpp: In member function 'void LedControl::setChar(int, int, char, boolean)':LedControl.cpp:185:43: error: 'pgm_read_byte_near' was not declared in this scope v=pgm_read_byte_near(charTable + index); ^Invalid library found in C:\Users\user\Documents\Arduino\libraries\LedControl: Missing 'core-dependencies' from libraryInvalid library found in C:\Users\user\Documents\Arduino\libraries\LedControl: Missing 'core-dependencies' from library
どんな問題があるのでしょう?
当然、ビルドすると下記のエラーがでます。
LedControl.cpp: In member function 'void LedControl::setDigit(int, int, byte, boolean)':LedControl.cpp:164:43: error: 'pgm_read_byte_near' was not declared in this scope v=pgm_read_byte_near(charTable + value); ^LedControl.cpp: In member function 'void LedControl::setChar(int, int, char, boolean)':LedControl.cpp:185:43: error: 'pgm_read_byte_near' was not declared in this scope v=pgm_read_byte_near(charTable + index);
LedControl-1.0.6.zip
web コンパイラにて GR-KURUMI_Sketch_V2.01.zip をテンプレートとして新規プロジェクトを作成し、「アップロード」で
LedControl-1.0.6.zip をプロジェクトに追加し、「ビルド実行」を行いましたがエラーもなくビルドは成功しました。
どのような手順でエラーが出ているのでしょうか?
Lwinは、私のサークルのメンバーです。私が代わって回答いたします。
webコンパイラでうまく行きました。ありがとうございます。
当初は、ide4gr で開発をするつもりで、このZIPファイルをインストールしようとしました。このときに、このエラーが出ます。
webコンパイラで開発を進めますので、問題は解消しました。
ide4gr V1.00 を確認してみましたが、収録されている GR-KURUMI のライブラリが V1.11と少々古く(約2年前)、その中の pgmspace.h の互換性の問題でエラーとなっているようです。
web コンパイラではライブラリは最新のものになっているので問題ありませんが、ide4gr を使用されたいということであれば ide4gr-1.00/hardware/arduino/rl78/cores/arduino/avr/pgmspace.h を添付のものに差し替えて使用してみて下さい。
pgmspace.h.zip