Guest User

Untitled

a guest
Jun 18th, 2024
29
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1.  
  2. #include <M5Unified.h> // M5Unifiedライブラリを使用可能にします。
  3.  
  4.  
  5. void setup() {
  6. // M5Stack初期設定用の構造体を代入
  7. auto cfg = M5.config();
  8. M5.begin(cfg); // M5デバイスの初期化
  9. Serial.begin(460800); // シリアル通信の初期化
  10. setCpuFrequencyMhz(80); // CPUの動作周波数を80MHzに設定
  11. // Serial.println("Start");
  12.  
  13. }
  14.  
  15. void loop() {
  16.  
  17. delay(1);
  18. }
  19.  
Advertisement
Add Comment
Please, Sign In to add comment