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 Watchdog stm32-sensor-base2
Diff: main.cpp
- Revision:
- 3:96fcb3b041eb
- Parent:
- 0:d383e2dee0f7
- Child:
- 4:f6e22dd39313
--- a/main.cpp Tue Jul 07 15:19:06 2020 +0530 +++ b/main.cpp Tue Jul 07 15:02:22 2020 +0000 @@ -1,6 +1,6 @@ #include <global.h> -Serial pc(USBTX, USBRX); +Serial pc(UART1_TX, UART1_RX); Timer timer; int main() { @@ -8,8 +8,8 @@ #if TEST_ULTRASONIC JSN_SR04 sensor1(TIM1_CH2, TRIG_PA8_OUT); - JSN_SR04 sensor2(TIM1_CH2, TRIG_PA15_OUT); - JSN_SR04 sensor3(TIM1_CH2, TRIG_PA14_OUT); + JSN_SR04 sensor2(TIM1_CH2, TRIG_PB15_OUT); + JSN_SR04 sensor3(TIM1_CH2, TRIG_PB14_OUT); sensor1.setRanges(10, 110); sensor2.setRanges(10, 110); sensor3.setRanges(10, 110);