0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

M5Paper: RFID-RC522 の使い方

Posted at

こちらのプログラムの *.ino と *.cpp を変換します。
M5Stack Core2: RFID-RC522 の使い方

*.ino の変換

sed_ino
s/RFID_RC522_CORE2.ino/RFID_RC522_M5Paper.ino/
s/M5Core2.h/M5EPD.h/
s/Wire.begin();/Wire1.begin(25, 32);/
s/M5.lcd./\/\/ M5.lcd./
s/M5.Lcd./\/\/ M5.Lcd./

*.cpp の変換

sed_cpp
s/Wire.a/Wire1.a/g
s/Wire.b/Wire1.b/g
s/Wire.e/Wire1.e/g
s/Wire.r/Wire1.r/g
s/Wire.w/Wire1.w/g

変換スクリプト

mv RFID_RC522_CORE2.ino RFID_RC522_M5Paper.ino
#
sed -i -f ./sed_cpp MFRC522_I2C.cpp
#
sed -i -f ./sed_ino RFID_RC522_M5Paper.ino

Arduino IDE
image.png

シリアルコンソールで接続

cu -s 115200 -l /dev/ttyACM0
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?