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.
airsylinder.cpp
00001 #include<aircylinder.hpp> 00002 00003 aircylinder::aircylinder(Port port ,bool push_flag):port_(port),push_flag_(push_flag){ 00004 } 00005 00006 void aircylinder::push(int cylinder_num){ 00007 if(cylinder_num != 0 || cylinder_num != 1){ 00008 cylinder_num = 0; 00009 } 00010 DigitalOut(port_.pin[cylinder_num], push_flag_); 00011 } 00012 00013 void aircylinder::pull(int cylinder_num){ 00014 if(cylinder_num != 0 || cylinder_num != 1){ 00015 cylinder_num = 0; 00016 } 00017 DigitalOut(port_.pin[cylinder_num] ,!push_flag_); 00018 }
Generated on Sat Oct 15 2022 07:52:33 by
1.7.2