![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
this is the library of the code of the second laboration.
Dependencies: SILABS_RHT mbed MemoryLCD
lb123.cpp
- Committer:
- mara1802
- Date:
- 2020-09-04
- Revision:
- 0:33ae04d01fd6
File content as of revision 0:33ae04d01fd6:
#include "lb123.h" led::led() : led0(PF4), led1(PF5) { } void led::toggle_led0() { led0 = !led0; } void led::toggle_led1() { led1 = !led1; } void led::on_led0() { led0 = 1; } void led::on_led1() { led1 = 1; } void led::off_led0() { led0 = 0; } void led::off_led1() { led1 = 0; } void led::blink_led0() { led0=!led0; wait(0.1); led0=!led0; } void led::blink_led1() { led1=!led1; wait(0.1); led1=!led1; }