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.
Dependencies: mbed
main.cpp
- Committer:
- tamamfirdaus
- Date:
- 2019-03-18
- Revision:
- 0:9853fb2d4bd9
File content as of revision 0:9853fb2d4bd9:
#include "mbed.h" #include "encoderKRAI.h" encoderKRAI encoderKiri (PC_0, PC_1, 538, encoderKRAI::X4_ENCODING); //chA, chB, revPulse, interruptType Serial pc(USBTX, USBRX); #define PULSE_TO_JARAK 0.61313625 int main(){ pc.baud(115200); while(1){ //int X; //X=encoderKiri.getPulses(); pc.printf("Gaga"); wait(0.2); } }