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

fix v3.0.1 #6

Merged
merged 2 commits into from
Jun 11, 2024
Merged

fix v3.0.1 #6

merged 2 commits into from
Jun 11, 2024

Conversation

aoki-rt
Copy link
Collaborator

@aoki-rt aoki-rt commented Jun 10, 2024

What does this implement/fix?

Arduino ESP32パッケージ3.0.1に対応したプログラムの改善

Does this close any currently open issues?

#3 がクローズになります。

How has this been tested?

実機でテストしました

Any other comments?

ありません

Checklists

@ShotaAk ShotaAk closed this Jun 10, 2024
@ShotaAk ShotaAk reopened this Jun 10, 2024
Copy link

@ShotaAk ShotaAk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントしました。確認お願いします。

.DS_Store Outdated
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.DS_Store ファイルをすべて削除してください。

(.gitignoreファイルを追加してなかったですね。。。)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

削除しました

Comment on lines 84 to 86
g_timer1 = timerBegin(1000000); //1us
timerAttachInterrupt(g_timer1, &onTimer1);
timerAlarm(g_timer1, 500, true, 0); //2kHz
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コメントの1usですが、実際に設定しているのは 1MHzなので記述を変えたいです。

Suggested change
g_timer1 = timerBegin(1000000); //1us
timerAttachInterrupt(g_timer1, &onTimer1);
timerAlarm(g_timer1, 500, true, 0); //2kHz
g_timer1 = timerBegin(1000000); // 1Mhz = 1/1us
timerAttachInterrupt(g_timer1, &onTimer1);
timerAlarm(g_timer1, 500, true, 0); // 500us = 1/2kHz

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他のタイマー関数も同様に対応お願いします。

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

周波数入力の時は、1MHz(1us)のように周波数(時間)でコメント
タイマカウントのところは、500*1us=500us(2kHz)のように時間(周波数)でコメントしました

Copy link

@ShotaAk ShotaAk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTMです

Copy link

@ShotaAk ShotaAk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShotaAk ShotaAk merged commit 7d100b1 into main Jun 11, 2024
7 of 8 checks passed
@ShotaAk ShotaAk deleted the 3.0.1 branch June 11, 2024 08:14
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.

2 participants