Skip to content

3 compile errors in the example sketch HardwareTimerPWMInput.in #509

Closed
@mrguen

Description

@mrguen

Hello,

I am looking for a way to use TIMER INPUT and found this nice example sketch " HardwareTimerPWMInput.in" but there are a few compilation errors:

  1. Streaming.h: No such file or directory

Then after removing this include:

HardwareTimerPWMInput:28:9: error: no match for 'operator<<' (operand types are 'USBSerial' and 'const char [80]')

Serial << "Example of the Timer Input Capture mode to measure PWM pulse width and period\n\n";

HardwareTimerPWMInput:73:61: error: 'endl' was not declared in this scope

Serial << ", period: " << Timer2.getCompare(TIMER_CH1) << endl;

Configuration:
Win 7 64 pro
Arduino IDE 1.8.9
Arduino_Core_STM32 1.5.0 updated via boards manager

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightquestion ❓Usually converted as a discussion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions