element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Think ON Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Think ON Design Challenge
  • More
  • Cancel
Think ON Design Challenge
Blog OLED 0.96" Display Interfacing with ON Semiconductor RSL10-SENSE-GEVK
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: mahmood.hassan
  • Date Created: 19 Mar 2020 10:53 PM Date Created
  • Views 1092 views
  • Likes 5 likes
  • Comments 3 comments
  • rsl10-sense-db-gevk
  • u8g2
  • rsl10-sense-gevk
  • ble 5.0
  • oled display
  • ads1115
  • on semiconductor
  • adc
Related
Recommended

OLED 0.96" Display Interfacing with ON Semiconductor RSL10-SENSE-GEVK

mahmood.hassan
mahmood.hassan
19 Mar 2020

image

Being an ultra low power device OLED display is perfect combo for RSL10 to display necessary information. C version of well know U8G2 library is used to interface this 0.96" OLED display with On-Semi RSL10-Sense-Gevk board.

 

// U8G2 display structure
static u8g2_t u8g2;

// u8x8_byte_rsl10_hw_i2c and u8x8_gpio_and_delay are hardware related functions. 
u8g2_Setup_ssd1306_i2c_128x64_noname_1(&u8g2, U8G2_R0, u8x8_byte_rsl10_hw_i2c, u8x8_gpio_and_delay);
u8g2_InitDisplay(&u8g2);
u8g2_ClearDisplay(&u8g2);

u8g2_SetFont(&u8g2,u8g2_font_guildenstern_nbp_t_all);//set current font

// Code to display string
u8g2_FirstPage(&u8g2);
do {
     u8g2_DrawStr(&u8g2, 60, 60, temp);//write string - you set coordinates and string
} while (u8g2_NextPage(&u8g2));

 

DEMO:

ADS1115 data is being displayed on 0.96" Oled display to test and verify the u8g2 display library.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

USEFUL LINKS:

U8G2 C source: https://github.com/olikraus/u8g2/tree/master/csrc

Helpful details: https://github.com/olikraus/u8g2/wiki/Porting-to-new-MCU-platform

  • Sign in to reply

Top Comments

  • mahmood.hassan
    mahmood.hassan over 5 years ago in reply to dubbie +3
    Yes these are very useful and low power display modules. You only need to write two hardware related functions and this graphics library can be used with any microcontroller.
  • dubbie
    dubbie over 5 years ago +2
    Mahmood, Nice display. I have purchased some similar ones for my robots so I am very interested in what you have done. The links seem very useful. Dubbie
  • shabaz
    shabaz over 5 years ago +2
    Very cool display : ) Nice to see it functioning with the RSL10. I'll have to get a couple of these for a project or two.
Parents
  • shabaz
    shabaz over 5 years ago

    Very cool display : ) Nice to see it functioning with the RSL10.

    I'll have to get a couple of these for a project or two.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • shabaz
    shabaz over 5 years ago

    Very cool display : ) Nice to see it functioning with the RSL10.

    I'll have to get a couple of these for a project or two.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube