Jump to content
ELFORUM - Forumul electronistilor

Buton Arduino


Recommended Posts


In codul din attach se folosesc 3 butoane fizice cu iesire pe pinii D 2,3,4,cum as putea sa actionez aceste butoane prin bluetooth  cu aplicatia BlueTerm,mentionez ca folosesc codul prin bluetooth,ma deranjeaza doar ca trebuie sa apas de fiecare data unul din butoane,ar fi mult mai usor daca fiecare buton ar avea definit o litera sau o cifra care sa comande acele butoane.


BT- DDS_sweeper.rar

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Ar trebui sa mearga daca in blocul switch, dupa

      case 's':        //Berechne die Anzeige bei Computer Sweep via USB        Freq1 = Fstart_MHz;        Freq2 = Fstart_MHz + ((Fstop_MHz - Fstart_MHz) / 2);        Freq3 = Fstop_MHz;        counter = counter + 1;        Perform_sweep();
adaugi si cazurile I (increment) si D (decrement)
        break;      case 'D': //decrement        x = x - 2;        if (x < 2)        {           x = 29 ;        }        set_frequency();        break;      case 'I': //increment        x = x + 2;        if (x > 29)        {           x = 2 ;        }        set_frequency();        break;
PS break-ul de deasupra lui D e necesar si a fost uitat in codul anterior (sau au fost "economisite" 6 caractere). Edited by Liviu M
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.Terms of Use si Guidelines