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 <vector> 00002 00003 #include "mbed.h" 00004 #include <FunctionPointer.h> 00005 00006 DigitalOut led1(LED1); 00007 DigitalOut led2(LED2); 00008 DigitalOut led3(LED3); 00009 DigitalOut led4(LED4); 00010 00011 #include "pump.h" 00012 #include "peristaltics.h" 00013 #include "flow_controlled.h" 00014 00015 00016 int 00017 main() { 00018 Peristaltics *peri = new Peristaltics(1); 00019 Flow_Controlled *flowed = new Flow_Controlled(1); 00020 00021 wait(3); 00022 00023 00024 peri->nutrient_a(1); 00025 peri->nutrient_b(2); 00026 led4 = 1; 00027 wait(5); 00028 led4 = 0; 00029 00030 00031 delete peri, flowed; 00032 00033 }
Generated on Tue Jul 19 2022 15:52:20 by
1.7.2