Code: Select all
#include <Wire.h>
#include <SPI.h>
#include <Gadgeteering.h>
#include <Mainboards/FEZMedusaMini.h>
#include <Modules/RS232.h>
using namespace gadgeteering;
using namespace gadgeteering::mainboards;
using namespace gadgeteering::modules;
fez_medusa_mini board;
rs_232* my_Rs232;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
my_Rs232 = new rs_232(2);
my_Rs232.write("Hello World");
}
Arduino: 1.6.5 (Windows 8.1), Platine: "FEZ Medusa"
Medusa_Mini_RS232_Test.ino: In function 'void setup()':
Medusa_Mini_RS232_Test:39: error: request for member 'write' in 'my_Rs232', which is of pointer type 'gadgeteering::modules::rs_232*' (maybe you meant to use '->' ?)
request for member 'write' in 'my_Rs232', which is of pointer type 'gadgeteering::modules::rs_232*' (maybe you meant to use '->' ?)
How can the string be sent?
Another question: how can the RS232 module be configurated different from the defaults:
Thanks in advance, Keniey