verylowfreq/suzuduino-uno-v1

(説明用) Issuesは開発者向けです。技術的な更新・訂正などを、詳細とともに教えてください Issues is for the developers.

Opened this issue · 0 comments

使い方の質問は Discussions へ! / Visit Discussions if you have any question on usage!
▶▶ https://github.com/verylowfreq/suzuduino-uno-v1/discussions ◀◀

Issuesは開発者向けです。技術的な更新・訂正・提案などを、詳細とともに教えてください。参考資料や、再現の前提条件・手順、を添付してお願いします。

Issues is for the developers. Please let me know about the technical update, correction or suggestions with details. Don't forget to attach the references, the conditions and procedure for the reproduction of the problem.


テンプレート / Template:
PCB revision: (ex: Suzuduino UNO V1a)
PC's OS: (ex: Windows 11)
Software: (ex: WCHISPStudio V3.50, Aruduino IDE 2.00, openwch/arduino_core_ch32 v1.03 )

Problem:
(ex: Cannot read PB8 as input)

Reproduction procedure:
(ex:

  1. Build the firmware with the following code
  2. Burn it
  3. Press or release the BOOT0 button.
  4. digitalRead(PB8) returnes the same value
    )

Solution:
(ex: Add the description about the limitation of GPIO)

Minimum code for reproduction of this problem:

constexpr int PIN_LED = PA5;
constexpr int PIN_BUTTON_BOOT0 = PB8;

void setup() {
  pinMode(PIN_LED, OUTPUT);
  pinMode(PIN_BUTTON_BOOT0, INPUT);
}

void loop() {
  digitalWrite(PIN_LED, digitalRead(PIN_BUTTON_BOOT0));
}