Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
micropython/ports/esp8266/esppwm.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
17 lines (13 sloc)
497 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef MICROPY_INCLUDED_ESP8266_ESPPWM_H | |
#define MICROPY_INCLUDED_ESP8266_ESPPWM_H | |
#include <stdbool.h> | |
#include <stdint.h> | |
void pwm_init(void); | |
void pwm_start(void); | |
void pwm_set_duty(int16_t duty, uint8_t channel); | |
uint16_t pwm_get_duty(uint8_t channel); | |
void pwm_set_freq(uint16_t freq, uint8_t channel); | |
uint16_t pwm_get_freq(uint8_t channel); | |
int pwm_add(uint8_t pin_id, uint32_t pin_mux, uint32_t pin_func); | |
bool pwm_delete(uint8_t channel); | |
#endif // MICROPY_INCLUDED_ESP8266_ESPPWM_H |