Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HardwarePWM: Fix period unit in comments to uS instead of nS #1055

Merged
merged 1 commit into from Mar 30, 2017

Conversation

pief
Copy link
Contributor

@pief pief commented Mar 29, 2017

1000 ms are 1000 * 0,001s = 1s which gives a frequency of 1/1 = 1 Hz
instead of 1 KHz. Now either the period or the frequency is wrong. Turns
out it's the period as the ESP8266 Technical Reference associates
1000 uS with 1 KHz.

@slaff
Copy link
Contributor

slaff commented Mar 30, 2017

ESP8266 Technical Reference associates
1000 uS with 1 KHz.

@pief Would it be possible to add also link in the changed comment pointing to the technical reference that you are mentioning?

1000 ms are 1000 * 0,001s = 1s which gives a frequency of 1/1 = 1 Hz
instead of 1 KHz. Now either the period or the frequency is wrong. Turns
out it's the period as the ESP8266 Technical Reference [1] associates
1000 uS with 1 KHz.

[1]: Espressif: ESP8266 Technical Reference, Chapter 12 (PWM Interface):
     http://espressif.com/sites/default/files/documentation/esp8266-technical_reference_en.pdf
@pief
Copy link
Contributor Author

pief commented Mar 30, 2017

Like this?

@slaff slaff added this to the 3.2.0 milestone Mar 30, 2017
@slaff slaff merged commit e0b9f60 into SmingHub:develop Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants