投稿

2024の投稿を表示しています

ESP32 開発備忘録

イメージ
IO2 の設定 基本オープン、もしくはpull-downしておく。pull-upの場合はダウンロード時エラー。 Sketch uses 262541 bytes (20%) of program storage space. Maximum is 1310720 bytes. Global variables use 21344 bytes (6%) of dynamic memory, leaving 306336 bytes for local variables. Maximum is 327680 bytes. esptool.py v4.5.1 Serial port /dev/cu.usbserial-14130 Connecting...................................... A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0xb)! The chip needs to be in download mode. For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html Failed uploading: uploading error: exit status 2  割り込みのテスト /************************************************  * ESP32 interrupt minimum test  * Wemos D1 mini ESP32 v1.0  * 2024/3/27  * *********************************************/ #define LED_PIN 2 // 1. タイマー宣言 hw_timer_t * timer = NULL ; hw_timer_t * timer1 = NULL ; volatile int interruptCounter = 0 ; int totalInterruptCounter = 0 ; po

Git 備忘録

イメージ
  .gitignoreが反映されない時(現在これをやってもダメ~) # ファイル名を指定してインデックスから削除 git rm --cached < ファイル名 > # または、すべてのファイルをインデックスから削除(ファイルが複数ある場合はこれでもOK) git rm -r --cached . # あらためて add git add . # コミット git commit -m "除外設定を変更"