Skip to content

cubic9com/m5core2_ancient_text_by_chatgpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview / 概要

A sketch for M5Stack Core2 .

m5core2_ancient_text_by_chatgpt is a program generate ancient document-like text for JRPG with ChatGPT API.

[日本語]

M5Stack Core2 用のスケッチです。

m5core2_ancient_text_by_chatgptは ChatGPT APIを使ってRPGの古文書風のテキストを生成するプログラムです。

Video / 動画

video

Installation / インストール

  1. Login to OpenAI API .

  2. Click Settings/Billing in the left sidebar.

  3. Click Payment methods.

  4. Click Add payment method.

  5. Fill the form.

  6. Click Add payment method button.

  7. Click API Keys in the left sidebar.

  8. Make sure key has created. If it does not exist, create it and copy it.

  9. Clone the repository:

    git clone https://github.com/cubic9com/m5core2_ancient_text_by_chatgpt.git
    cd m5core2_ancient_text_by_chatgpt
  10. Install Visual Studio Code if you haven't already.

  11. Open the project using Visual Studio Code:

    code .
  12. Change the ssid value and password value in src/main.cpp to match your network.

  13. Change the chatgpt_secret_key value in src/main.cpp to match your OpenAPI secret key.

  14. Install PlatformIO IDE extension:

    • Go to the Extensions view (Ctrl+Shift+X).
    • Search for PlatformIO IDE and install it.
  15. Open PlatformIO Home:

    • In the left Activity Bar, click PlatformIO icon.
    • In the left Primary Sidebar, go to QUICK ACCESS > PIO Home > Open.
  16. Open the project:

    • In the right Editor Group, click Open Project in the PIO HOME tab.
    • Select the cloned m5core2_ancient_text_by_chatgpt project folder.
  17. Build and upload the project:

    • In the left Primary Sidebar, go to PROJECT TASKS > m5stack-core2 > General > Upload.

[日本語]

  1. OpenAI API にログインします。

  2. 左側のサイドバーで Settings/Billing をクリックします。

  3. Payment methods をクリックします。

  4. Add payment method をクリックします。

  5. フォームに必要事項を入力します。

  6. Add payment method ボタンをクリックします。

  7. 左側のサイドバーで API Keys をクリックします。

  8. キーが作成されていることを確認します。存在しない場合は、新しく作成してコピーしてください。

  9. リポジトリをクローンします:

    git clone https://github.com/cubic9com/m5core2_ancient_text_by_chatgpt.git
    cd m5core2_ancient_text_by_chatgpt
  10. まだインストールしていない場合は、Visual Studio Code をインストールします。

  11. Visual Studio Code でプロジェクトを開きます:

    code .
  12. src/main.cpp 内の ssid の値と password の値をあなたのネットワークに合わせて変更します.

  13. src/main.cpp 内の chatgpt_secret_key の値をあなたのOpenAIシークレットキーに合わせて変更します。

  14. PlatformIO IDE 拡張機能をインストールします:

    • 左サイドバーの「拡張機能」ビュー (Ctrl+Shift+X) を開きます。
    • PlatformIO IDE を検索してインストールします。
  15. PlatformIO Home を開きます:

    • 左のアクティビティバーで PlatformIO アイコンをクリックします。
    • 左のメインサイドバーから QUICK ACCESS > PIO Home > Open を選択します。
  16. プロジェクトを開きます:

    • 右のエディターグループ内の PIO HOME タブで Open Project をクリックします。
    • クローンした m5core2_ancient_text_by_chatgpt プロジェクトフォルダーを選択します。
  17. プロジェクトをビルド&アップロードします:

    • 左のメインサイドバーから PROJECT TASKS > m5stack-core2 > General > Upload を選択します。

License / ライセンス

Copyright (C) 2023-2025, cubic9com All rights reserved.

This project is licensed under the MIT license.

See the LICENSE file for details.

About

m5core2_ancient_text_by_chatgpt is a program generate ancient text with ChatGPT API.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages