
if i look back, i am lost
h
he wasn't even looking at me and he found me
AnasAbdin
Today's Document
hello vonnie

roma★
Misplaced Lens Cap

No title available
$LAYYYTER
Sade Olutola

No title available
Three Goblin Art
ojovivo
KIROKAZE
Sweet Seals For You, Always
Stranger Things

Discoholic 🪩

Andulka
art blog(derogatory)

seen from United States
seen from United States
seen from United States
seen from Australia
seen from Malaysia
seen from United States

seen from Malaysia
seen from United States

seen from United States
seen from United States

seen from United States

seen from Türkiye

seen from United States
seen from United States

seen from Malaysia

seen from Malaysia

seen from United States

seen from United States

seen from United States
seen from United States
@mytruthhere-blog
You know, I think love is about finding someone who’s flaws work with yours in perfect harmony.
Melly (via ambiguities)
Please don’t confuse what I do with who I am.
pooksbedamned (via wnq-writers)
I must change my life so that I can live it, not wait for it.
Susan Sontag, from Reborn: Journals and Notebooks, 1947-1964 (Farrar, Straus and Giroux, 2008)
More islamic quotes HERE
Gosh I’m gonna miss y’all.
always trust in God, even when it don’t make sense.
KEVINGETEM (via kushandwizdom)
Do you realize how important it is to be independent? To be able to take care of yourself? To not rely on someone else for your most basic needs? And to not get so damn attached to stuff that you’d rather demean yourself than live without it?
Alyson Noel, Faking 19 (via versteur)
She lost him. But she found herself and somehow that was everything.
Keep it in mind.
Quote by Jorge Luis Borges Handwritten by fouhrest
Updated Joystick code with if statements
/* Read Jostick
* ------------
*
* Reads two analog pins that are supposed to be
* connected to a jostick made of two potentiometers
*
* We send three bytes back to the comp: one header and two
* with data as signed bytes, this will take the form:
* Jxy\r\n
*
* x and y are integers and sent in ASCII
*
* http://www.0j0.org | http://arduino.berlios.de
* copyleft 2005 DojoDave for DojoCorp
*/
int ledPin = 13;
int joyPin1 = 0; // slider variable connecetd to analog pin 0
int joyPin2 = 1; // slider variable connecetd to analog pin 1
int value1 = 0; // variable to read the value from the analog pin 0
int value2 = 0; // variable to read the value from the analog pin 1
void setup() {
pinMode(ledPin, OUTPUT); // initializes digital pins 0 to 7 as outputs
Serial.begin(9600);
}
int treatValue(int data) {
return (data);
}
void loop() {
// reads the value of the variable resistor
value1 = analogRead(joyPin1);
// this small pause is needed between reading
// analog pins, otherwise we get the same value twice
delay(100);
// reads the value of the variable resistor
value2 = analogRead(joyPin2);
if (value1==1023) {
Serial.println("West");
}
if (value1==0) {
Serial.println("East");
}
if (value2==1023) {
Serial.println("North");
}
if (value2==0) {
Serial.println("South");
}
digitalWrite(ledPin, HIGH);
delay(value1);
digitalWrite(ledPin, LOW);
delay(value2);
Serial.print("X=");
Serial.print(" ");
Serial.print(treatValue(value1));
Serial.print(" ");
Serial.print("Y=");
Serial.print(" ");
Serial.println(treatValue(value2));
}
So this code is the one that connects the Joystick with the board,
we use the analog inputs as a trace of the motion of the x and y
Note, the joystick is considered two potentiometers, made of two resistors.
Need to find the data sheet of the joystick.
/* Read Jostick * ------------ * * Reads two analog pins that are supposed to be * connected to a jostick made of two potentiometers * * We send three bytes back to the comp: one header and two * with data as signed bytes, this will take the form: * Jxy\r\n * * x and y are integers and sent in ASCII * * http://www.0j0.org | http://arduino.berlios.de * copyleft 2005 DojoDave for DojoCorp */
int ledPin = 13; int joyPin1 = 0; // slider variable connecetd to analog pin 0 int joyPin2 = 1; // slider variable connecetd to analog pin 1 int value1 = 0; // variable to read the value from the analog pin 0 int value2 = 0; // variable to read the value from the analog pin 1
void setup() { pinMode(ledPin, OUTPUT); // initializes digital pins 0 to 7 as outputs Serial.begin(9600); }
int treatValue(int data) { return (data * 9 / 1024) + 48; }
void loop() { // reads the value of the variable resistor value1 = analogRead(joyPin1); // this small pause is needed between reading // analog pins, otherwise we get the same value twice delay(100); // reads the value of the variable resistor value2 = analogRead(joyPin2);
digitalWrite(ledPin, HIGH); delay(value1); digitalWrite(ledPin, LOW); delay(value2); Serial.print('J'); Serial.print(treatValue(value1)); Serial.println(treatValue(value2)); }