-
Notifications
You must be signed in to change notification settings - Fork 0
fix v3.0.1 #6
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Pi:Co V2用のArduinoサンプルスケッチ集 | |
|
||
## 動作環境 | ||
|
||
- arduino-esp32 : v2.0.17 | ||
- arduino-esp32 : v3.0.1 | ||
|
||
## サンプルスケッチについて | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -81,10 +81,10 @@ void setup() | |||||||||||||
|
||||||||||||||
Serial.begin(115200); | ||||||||||||||
|
||||||||||||||
g_timer1 = timerBegin(1, 80, true); //1us | ||||||||||||||
timerAttachInterrupt(g_timer1, &onTimer1, true); | ||||||||||||||
timerAlarmWrite(g_timer1, 500, true); //2kHz | ||||||||||||||
timerAlarmEnable(g_timer1); | ||||||||||||||
g_timer1 = timerBegin(1000000); //1us | ||||||||||||||
timerAttachInterrupt(g_timer1, &onTimer1); | ||||||||||||||
timerAlarm(g_timer1, 500, true, 0); //2kHz | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. コメントの1usですが、実際に設定しているのは 1MHzなので記述を変えたいです。
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 他のタイマー関数も同様に対応お願いします。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 周波数入力の時は、1MHz(1us)のように周波数(時間)でコメント |
||||||||||||||
timerStart(g_timer1); | ||||||||||||||
} | ||||||||||||||
|
||||||||||||||
void loop() | ||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,6 +33,6 @@ | |
//#define SW_CM 2 | ||
#define SW_RM 4 | ||
|
||
#define BUZZER_CH 0 | ||
|
||
|
||
#endif // DEVICE_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.DS_Store ファイルをすべて削除してください。
(.gitignoreファイルを追加してなかったですね。。。)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
削除しました