-
Notifications
You must be signed in to change notification settings - Fork 81
Closed
Description
I am following the instructions I found here for my board https://learn.adafruit.com/adafruit-qt-py-ch32v203/arduino-ide-setup#manually-install-the-arduino-core-ch32-board-support-package-3182055.
After installing this repository to my directory and trying to compile my arduino code to my board, I received this error
/Documents/Arduino/hardware/arduino_core_ch32/WCH/cores/arduino/WSerial.h:8:10: fatal error: Adafruit_USBD_CDC.h: No such file or directory
#include "Adafruit_USBD_CDC.h"
^~~~~~~~~~~~~~~~~~~~~
compilation terminated.
exit status 1
Compilation error: exit status 1
My assumption here is that I am meant to have installed this library? After reading the README of this repo I haven't seen where I am supposed to install this. Also I have installed the TinyUSB library in my arduino IDE already.
Here is my code I'm trying to compile. Any help would be appreciated!
// SPDX-FileCopyrightText: 2024 Ha Thach for Adafruit Industries
// SPDX-License-Identifier: MIT
#include <Arduino.h>
#include <Adafruit_TinyUSB.h> // required for USB Serial
const int led = PA6;
void setup () {
pinMode(led, OUTPUT);
}
void loop () {
Serial.println("LED on");
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
Serial.println("LED off");
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Metadata
Metadata
Assignees
Labels
No labels