Skip to content

Port pwm code problem #2402

Closed
Closed
@baoxianzhang

Description

@baoxianzhang

Basic Infos

Hardware

Hardware: ESP-12
Core Version: 2.1.0-rc2

Description

I ported the pwm code (core_esp8266_wiring_pwm.c) to my personal project. But it didn't work, no wave displayed in the oscilloscope.
I barely changed the code. So please guide me to find out the problem. How to debug? How to detect the pwm timer whether start or not? Are there any documentation about the register usage?
Thanks!

Settings in IDE

Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using:
Reset Method: nodemcu

Sketch

#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

messages here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions