Hi.
Has anyone figured out how to use dino using Seeed Bluetooth Shield?
I tried replacing dino setup() function with
void setup() {
Serial.begin(38400); // Set BluetoothBee BaudRate to default baud rate 38400
Serial.print("\r\n+STWMOD=0\r\n"); // set the bluetooth work in slave mode
Serial.print("\r\n+STNA=SeeedBTSlave\r\n"); // set the bluetooth name as "SeeedBTSlave"
Serial.print("\r\n+STOAUT=1\r\n"); // Permit Paired device to connect me
Serial.print("\r\n+STAUTO=1\r\n"); // Auto-connection should be forbidden here
delay(2000); // This delay is required.
Serial.print("\r\n+INQ=1\r\n"); // make the slave bluetooth inquirable
delay(2000); // This delay is required.
Serial.flush();
dino.setupWrite(writeCallback);
}
Here is my ruby script.
board = Dino::Board.new(Dino::TxRx::Serial.new({device: "/dev/cu.SeeedBTSlave-DevB", baud: 38400}))
led = Dino::Components::Led.new(pin: 8, board: board)
led.on
I can pair the Arduino with Mac OS X but I keep getting “Board not found” error.