Hello, good day,
I’m new to MCU programming. I have an STM32 based on the STM32L4+ series, and I’m using PlatformIO to try to make use of USB OTG to connect a USB keyboard for text input. I have a display connected where I want to see the text output. I’ve successfully set up the display, but its controller only has libraries for the Arduino framework. So, I want to use the Arduino framework to be able to use USB host to connect the keyboard, but I can’t find sufficiently comprehensive information to integrate this. For instance, I don’t know which PlatformIO directories to add the library to or how to do it. I’m sharing my .ini
file and folder structure here in case anyone can help me.
[env:bw_swan_r5]
platform = ststm32
board = bw_swan_r5
upload_protocol = stlink
monitor_port = COM3
framework = arduino
;, stm32cube
build_flags =
-D PIO_FRAMEWORK_ARDUINO_ENABLE_CDC
-D USBH_HID_MODULE_ENABLED
-I lib/stm32-mw-usb-host-master
monitor_speed = 115200
lib_extra_dirs =
lib_deps =
Wire
blues/Blues Wireless Notecard@^1.6.0
adafruit/Adafruit GFX Library@^1.11.11
adafruit/Adafruit RA8875@^1.4.4
adafruit/Adafruit BusIO