Explain the differences in the following Arduino command functions. Give an example of each i Delay() and DelayMicroseco
Posted: Thu Jul 14, 2022 2:07 pm
Explain the differences in the following Arduino command functions. Give an example of each i Delay() and DelayMicroseconds [3Marks] ii. float () and int () [3 Marks] b. What will be the output of the following Arduino code? i. void setup() \{ Serial.begin(9600); for (int a=2;a<=6;a++){ Serial.print(a); \} void loop() \{ \} [2 Marks] i1. void setup() \{ Serial.begin(9600); \} void loop() I for (int x=1000;x>10;x=x/10 ) Serial.println(x); \} [2 Marks] iii. //5V voltage is supplied to the pin A0 void setup() \{ Serial.begin(9600); pinMode(A0, INPUT); void loop()\{ int s = analogRead(A0); Serial.println(s); [2arks]