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: Motor mbed millis
Fork of DagonFly__RoadToJapan_15Mei_Ultimate by
main.cpp
00001 #include "mbed.h" 00002 #include "encoderKRAI.h" 00003 #include "Motor.h" 00004 #include "millis.h" 00005 00006 encoderKRAI encLauncherDpn( D2, D3, 28, encoderKRAI::X4_ENCODING); 00007 //encoderKRAI encLauncherBlk( PC_12, PD_2, 28, encoderKRAI::X4_ENCODING); 00008 Serial pc(USBTX,USBRX); 00009 00010 00011 00012 int main() { 00013 00014 pc.baud(115200); 00015 //wait_ms(10000); 00016 startMillis(); 00017 pc.printf("Hello World\n"); 00018 00019 while(1) { 00020 00021 pc.printf("%d\n", encLauncherDpn.getPulses()); 00022 wait_ms(100); 00023 } 00024 }
Generated on Sun Jul 17 2022 15:16:36 by
1.7.2
