Skip to main content

All Questions

2 votes
2 answers
4k views

Return array or multiple variables from a function

int arrays[2] = {0,1}; void setup () { Serial.begin(9600); pinMode(2,INPUT); } void loop () { int buttonstate = digitalRead(2); //reads I/O pin 2 if (buttonstate==HIGH) { /...
Μικαέλα Χλς.'s user avatar