Skip to content

Instantly share code, notes, and snippets.

@eeucalyptus
eeucalyptus / ch32v003fun_project.sh
Last active February 6, 2025 13:19
Generate project boilerplate for ch32v003fun
#!/bin/bash
# Copyright 2024 eeucalyptus
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the “Software”), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:

CH32V Notes

The board "CH32V203C8T6-EVT-R0" is a bare minimum dev board with a ch32v203c8t6 MCU and a USB-C connector. It is useful to check out the ch32v platform in general.

First impression

I plugged it in via USB-C and nothing happened. No LEDs, no blinky. Thank you.

USB-C power

diff --git a/Arduino-Tetris.ino b/Arduino-Tetris.ino
index 4919204..7670e3d 100644
--- a/Arduino-Tetris.ino
+++ b/Arduino-Tetris.ino
@@ -3,7 +3,7 @@
#include "Tetromino.h"
#include "Input.h"
-#define SOUND 5 // Buzzer output pin
+#define SOUND 11 // Buzzer output pin