5) How many pins of the DHT11 sensor need to be connected to circuitry in order for it to operate correctly?
3
New cards
2
5) How many data pins are needed on a single device for I2C Communications?
2
New cards
3
5) For the Homework 5 assignment, what code change had to made without xTaskCreate?
Directly calling the function with no arguments
New cards
4
5) Write a segment of code that you would use to display the sentence “hello world” on the bottom row of the LCD 1602
string = “Hello World”;
sprintf(strl”%s”,string);
LCD(strl)
char buff(17)
memset(buff, 0, sizeof(buff));
sprintf(buff, “Hello World”);
LCD_set cursor(0,1);
LCD_writestr(buff);
New cards
5
6) What is the unit for the amount of time specified by the second input parameter for the ESP-IDE function?
microseconds
New cards
6
6) Which ESP-IDF function is used to give a name to a GPIO interrupt service routine?
gpio_isr_handler_add
New cards
7
6) How many pins of the LCD1602 device are used for data communication?
1
New cards
8
6) Assume that one terminal of a normally-closed push-button is connected to GPIO27 of the ESP32, while the other terminal is connected to Vcc. Write the segment of code that will allow the press of this button to generate an interrupt on the ESP32
esp_rom_gipo_pad_select_gipo(27);
gipo_set_direction(27, GPIO_MODE_INPUT);
gipo_pulldown_en(27);
gipo_pullup_dis(27);
gipo_set_intr_type(27, GPIO_INTR_NEGEDGE);
gipo_install_isr_service(0);
gipo_isr_handler_add(27,gipo_ISR,NULL);
New cards
9
7) What basic electrical property does the ESP32 touch sensor rely on?
Capacitance
New cards
10
7) For the concurrent state machines in HW 7, which of the following was used for communication between the two state machines?
Global Variable
New cards
11
7) The technique of using sleep modes in an embedded systems program is an example of what type of optimization?
Power
New cards
12
8) In an ESP IDR program, what instructions should replace the following instruction in order to create the same amount of delay while in light sleep mode?