SSD1306_LCD Example for WIZwiki-W7500
Dependencies: Adafruit_GFX mbed-dev
Prerequisite
This example is for OLED test.
To implement this function, you need a Platform board and OLED.
Below are what we used.
- WIZwiki-W7500 from WIZnet (Platform board)
- OLED from WIZnet
Hardware Configuration
WIZwiki-W7500 Pin map
OLED (from WIZnet)
Wiring Table
OLED | W7500 |
SCL | PA_9 |
SDA | PA_10 |
GND | GND |
VCC | VCC |
Software
Define Pins
main.cpp
#if defined(TARGET_WIZwiki_W7500) #define SDA PA_10 #define SCL PA_9 #endif
Set data for OLED
main.cpp
gOled.begin(); gOled.printf("%ux%u OLED Display\r\n", gOled.width(), gOled.height()); gOled.display();
Caution
watchout pins setting
Revision 2:e624abf0f696, committed 2017-04-12
- Comitter:
- stkim92
- Date:
- Wed Apr 12 23:48:20 2017 +0000
- Parent:
- 1:6b03b9f64311
- Commit message:
- Change a mbed-src to mbed-dev;
Changed in this revision
mbed-dev.lib | Show annotated file Show diff for this revision Revisions of this file |
mbed-src.lib | Show diff for this revision Revisions of this file |
diff -r 6b03b9f64311 -r e624abf0f696 mbed-dev.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-dev.lib Wed Apr 12 23:48:20 2017 +0000 @@ -0,0 +1,1 @@ +https://mbed.org/users/mbed_official/code/mbed-dev/#e13f6fdb2ac4
diff -r 6b03b9f64311 -r e624abf0f696 mbed-src.lib --- a/mbed-src.lib Thu Jun 25 05:29:49 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,1 +0,0 @@ -http://developer.mbed.org/users/kaizen/code/mbed-src/#9fa26d516dae