Embeetle IDE lets you download example code programs from a server for many supported MCUs. The SSD1306 display is a very popular screen to use with Arduino projects.
Connect HardwareIn Embeetle IDE program RISC-V chips we connected the WCH-LinkE usb programming dongle to our CH32V003F4P6 development board. SWDIO programming pin to D1 input.
Here, we add our 128x32 screen power and I2C SCL and SDA signal connections. Be very careful connecting devices. These voltages are safe for you but components can be damaged.
Embeetle HomeOpen Embeetle IDE and start with the Home screen. Click CREATE Generate Project. A panel will open, we want to locate and download ch32v003f4p6-evt-r0-1v1-oled-128x32 for our WCH board.
Files will download to your PC to the directory shown above. Embeetle will build our program in this project directory. You can locate and use the .bin, .elf and .hex files generated.
The default is to open the main.c file. The comments give our signal connections. There are source files that need checking (red). Automatic code-checking shows a progress bar at the bottom of the screen.
To clear the remaining source files right-click on the Filetree and select either Automatic or Force Include. All should change to green.
A window appears showing a successful build and the location of the output file.
We should see flash upload progress and our display should show Hello World!
Don't worry about it. The code works! They are only warnings. Can't be anything serious.
Change the display text in line 60 of source file main.c.
Change display parameters in the header file oled_segment.h.
Try other I2C displays. Be careful with your connections.
Comments
Please log in or sign up to comment.