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.
Diff: EncoderInit.cpp
- Revision:
- 4:9ce0e451aeff
- Parent:
- 2:3fcf36c1b1af
- Child:
- 7:d7c793ec5c04
diff -r d43c60d01569 -r 9ce0e451aeff EncoderInit.cpp
--- a/EncoderInit.cpp Wed Dec 19 04:02:46 2018 +0000
+++ b/EncoderInit.cpp Thu Jan 17 04:10:16 2019 +0000
@@ -8,6 +8,9 @@
timer->Init.CounterMode = TIM_COUNTERMODE_UP;
timer->Init.Prescaler = 0;
timer->Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
+
+ //Kalo ngerusak hapus aja ini
+ //HAL_TIM_Base_Init(timer);
encoder->EncoderMode = encmode;