Bùi Trịnh Thế Viên
Published © MIT

STC8051 Arduino Core — C++ on a $1 8051 Chip

An Arduino core for the STC8H8K64U that brings full C++ via a RISC-V emulator. USB upload, no programmer needed, under $1.

IntermediateFull instructions provided2 hours28
STC8051 Arduino Core — C++ on a $1 8051 Chip

Things used in this project

Hardware components

STC8H8K64U
×1
USB Cable Assembly, USB Type A Plug to Micro USB Type B Plug
USB Cable Assembly, USB Type A Plug to Micro USB Type B Plug
×1

Story

Read more

Code

Example — Blink + Serial

C/C++
void setup() {
  pinMode(P3_4, OUTPUT);
  Serial.begin(9600);
  Serial.println("Hello from STC8H!");
}

void loop() {
  digitalWrite(P3_4, HIGH);
  Serial.println("LED ON");
  delay(1000);
  digitalWrite(P3_4, LOW);
  Serial.println("LED OFF");
  delay(1000);
}

STC8051 Arduino Core

Full source code, toolchain, and board package. Includes RISC-V GCC toolchain, USB uploader, and Arduino library support for the STC8H8K64U.

Credits

Bùi Trịnh Thế Viên
1 project • 0 followers

Comments