56. Arduino UART Functions

Question.7

Eric has his own Poultry Farm, where he has a device to count the number of chickens each second. He wants to send a count of 355 over the serial bus. What data will be transferred on UART (DECIMAL value)?

 


int number_of_chickens = 355;

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.write(number_of_chickens);
  while(1);
}


 

Select Answer