Control LED using Bluetooth in Matlab without using serial port

1 visualizzazione (ultimi 30 giorni)
Good day everyone.
recently I wish to wireless control a LED using Bluetooth with Arduin in Matlab.
I have successfully create the connection.
Yet, I dont know how to write the script to control the LED wirelessly.
Below is the code that I use to create connection:
bt = Bluetooth('HC-05',1);
fopen(bt);
fclose(bt);
clear(bt)
How to write the code in between fopen and fclose to controll the LED??
use fprintf / fwrite / or ??
i really dont know how to do so...
Please help me if you know it...
I really need so idea...

Risposte (1)

Walter Roberson
Walter Roberson il 23 Apr 2016
Yes, you can use fprintf(), fwrite(), fread(), fgets(), fgetl()

Categorie

Scopri di più su Test and Measurement in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by