y w / Mbed 2 deprecated moter_titech

Dependencies:   mbed-rtos mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ASI.h Source File

ASI.h

00001 #ifndef ASI_H
00002 #define ASI_H
00003 
00004 #include "mbed.h"
00005 #include "rtos.h"
00006 
00007 Serial pc(USBTX, USBRX);
00008 PwmOut Dou1(p21);
00009 PwmOut Asi1(p23);
00010 PwmOut Dou2(p22);
00011 PwmOut Asi2(p24);
00012 
00013 AnalogIn pote1(p15);
00014 AnalogIn pote2(p16);
00015 AnalogIn psd(p20);
00016 
00017 DigitalIn hiro(p10);
00018 char c;
00019 
00020 
00021 int zen1=0;
00022 int go1=0;
00023 int zen2=0;
00024 int go2=0;
00025 int dou1=0;
00026 int dou2=0;
00027 
00028 int potentio1;
00029 int potentio2;
00030 
00031 int deg1=1;
00032 int deg2=1;
00033 
00034 int hirose=0;
00035 
00036 #include "HANTEI.h"
00037 #include "ZENGO.h"
00038 #include "DOU.h"
00039 #include "HIROSE.h"
00040 
00041 
00042 #endif