Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 00003 AnalogIn input(P1_31); 00004 DigitalOut led2(P3_25); 00005 00006 float ADC_value; 00007 00008 int main() { 00009 uint16_t samples[1024]; 00010 00011 while (1){ 00012 00013 ADC_value = input.read_u16(); 00014 if(ADC_value < 18000) { 00015 led2 =0; 00016 } 00017 else { 00018 led2 = 1; 00019 } 00020 } 00021 }
Generated on Wed Jul 13 2022 00:22:52 by
