![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
LDR test for Stage 1 Engineering at the University of York
main.cpp
- Committer:
- ajp109
- Date:
- 2021-09-20
- Revision:
- 4:390669f57ccc
- Parent:
- 2:4dca570013d8
File content as of revision 4:390669f57ccc:
#include "mbed.h" int main() { AnalogIn light(A0); // Loop forever... while (true) { printf("Raw light level: %d\n", light.read_u16()); thread_sleep_for(500); } }