Newsletter

Melden Sie sich jetzt für den Newsletter an und profitieren Sie von Aktionen, Gutscheinen & Verlosungen.
 

Name:


Email:


Ok

Joystick Module

Joystick Module - Miscellaneous
Brand: Various
Product Code: AC-1148
Availability: In Stock
Price: 3,95€
Incl. 0,63€ VAT excl. shipping costs
Qty:        

Joystick Module

    The joystick is a combination of 2 analoog potentiometer and a digital switch.

     

    Code Sample:

    int JoyStick_X = A0; // xint JoyStick_Y = A1; // yint JoyStick_Z = 3; // keyvoid setup (){
    pinMode (JoyStick_X, INPUT);
    pinMode (JoyStick_Y, INPUT);
    pinMode (JoyStick_Z, INPUT);
    Serial.begin (9600); // 9600 bps}void loop (){int x, y, z;
    x = analogRead (JoyStick_X);
    y = analogRead (JoyStick_Y);
    z = digitalRead (JoyStick_Z);
    Serial.print (x, DEC);
    Serial.print (",");
    Serial.print (y, DEC);
    Serial.print (",");
    Serial.println (z, DEC);
    delay (100);}

    Write a review

    Your Name:


    Your Review:Note: HTML is not translated!

    Rating: Bad           Good

    Enter the code in the box below:



    Live Help