Temperature and humidity example for NXP rapid IoT prototyping kit. Read more at https://www.hackster.io/marcomerli/riotwear-mbed-2b2011 .
Dependencies: AMS_ENS210_temp_humid_sensor
main.cpp
- Committer:
- batman52
- Date:
- 2019-11-20
- Revision:
- 78:ddf5cff958fa
- Parent:
- 29:0b58d21e87d6
- Child:
- 79:0431b9fd3dc0
File content as of revision 78:ddf5cff958fa:
#include "mbed.h" DigitalOut led_red(LED_RED, 1); // LED1 = LED_RED, 1 --> OFF, 0 --> ON DigitalOut led_blue(LED_BLUE, 1); // LED3 = LED_BLUE, 1 --> OFF, 0 --> ON // main() runs in its own thread in the OS int main() { while (true) { led_red = !led_red; led_blue = !led_red; wait(0.5); } }