![]() ![]() drawStr ( 0, 5, "Hello," ) // write something to the internal memory Note that the initial location for each line of text (for example in line 20): u8g2. ![]() The list of fonts included with the library are provided at. You can see how we've used a different font in the sketch - at lines 19, 30 and 38. Your display should go through the demonstration of various font sizes and so on as shown in the video below: Open a new sketch in the IDE, then copy and paste the following sketch into the IDE (you may find the "view raw" link at the end useful): Now it's time to check everything necessary is working. Click on the library then click "Install":Īfter a moment the library will be installed and you can close that box. ![]() Enter "u8g2" in the search box, and after a moment it should appear in the results as shown in the image below. ![]() To install the library - simply open the Arduino IDE and select Manage Libraries. If you can't find your I2C pins on other boards, email for assistance. Arduino Mega uses D20/D21 for SDA and SCL. Arduino Leonard uses D2/D3 for SDA and SCL or the separate pins to the left of D13. The display uses the I2C data bus for communication, and is a 5V and 3.3V-tolerant board.ĥV/3.3V- Vcc (power supply, can be 3.3V or 5V) This includes installing the Arduino library, making a succesful board connection and running a demonstration sketch. The purpose of this guide is to get your display successfully operating with your Arduino, so you can move forward and experiment and explore further types of operation with the display. Your new 0.49" 64 x 32 Graphic I2C OLED display is a compact and useful display, that require a small amount of time to get working with your Arduino or compatible board. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |