Graphics Library U8g2 and Atmel Studio 7: Step by Step Instructions

Go To Last Post
5 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

U8g2 is a graphics library for embedded systems: https://github.com/olikraus/u8g2/wiki

 

I have finished an example U8g2 project for an ATMEGA328 controller. This includes step by step instructions for Atmel Studio 7: https://github.com/olikraus/u8g2/wiki/u8g2as7

 

Oliver

 

Last Edited: Sat. Jun 9, 2018 - 09:58 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I love you , Oliver.    The example works nicely on the SPI SSD1306 that I happened to have on my desk.

 

Now I just have to do the same for the I2C SSD1306.    First attempt failed.

 

I must admit that C++ is a lot easier!

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi David

 

Nice to see you here on avrfreaks. Hmm.. looks like your are even more acive here.

 

It took me almost a full day to run the Atmel Studio 7 with U8g2, so I decided to keep it simple with the first implemention and restricted everything to plain C.

 

Glue code for I2C is still missing, but it should not be that complicated. Let me know if you need support.

 

Oliver

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I am less active here than in the past.

 

It requires a bit of a design decision.   Make U8G2 a C project on AS7 or a C++ project on AS7 (like you do for Arduino).

 

Whatever you do,  it requires low-level I2C, SPI, ... for an unknown range of targets.

 

Incidentally,   u8g2 just works out of the box on STM32, SAMD, Freescale, ...   Arduino targets.

 

David.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Nothing to do with Studio, moving to projects.

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly