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.
myrpc.h
00001 // myrpc.h 00002 // 00003 // Based on: 00004 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.h 00005 // http://mbed.org/projects/cookbook/svn/Servo/trunk/Servo.cpp 00006 00007 #ifndef MYRPC_H 00008 #define MYRPC_H 00009 00010 #include "mbed.h" 00011 00012 namespace mbed { 00013 00014 class myrpc : public Base { 00015 public: 00016 myrpc(PinName pin, const char* name = NULL); 00017 00018 void ledon(int n); 00019 void ledoff(int n); 00020 00021 #ifdef MBED_RPC 00022 virtual const struct rpc_method *get_rpc_methods(); 00023 static struct rpc_class *get_rpc_class(); 00024 #endif // MBED_RPC 00025 00026 protected: 00027 DigitalOut _pin; 00028 }; 00029 00030 } // namespace mbed 00031 #endif // MYRPC_H
Generated on Fri Jul 15 2022 16:15:11 by
1.7.2