Example #1
0
 @Override
 public void generateClassHeader(ArduinoGenerator gen) {
   gen.appendNativeStatement("#include <SoftwareSerial.h>\n");
   gen.appendNativeStatement("#include <SeeedRFIDLib.h>\n");
   gen.appendNativeStatement("#define RFID_RX_PIN 2\n");
   gen.appendNativeStatement("#define RFID_TX_PIN 3\n");
   gen.appendNativeStatement("SeeedRFIDLib RFID(RFID_RX_PIN, RFID_TX_PIN);\n");
   gen.appendNativeStatement("RFIDTag tag;\n");
 }
Example #2
0
 @Override
 public void generateInit(ArduinoGenerator gen) {
   gen.appendNativeStatement("Serial.begin(57600);\n");
 }