Skip to content

Add support for SSD1306 and SH1106 I2C displays for STM32F1#3

Merged
thinkyhead merged 3 commits intoMarlinFirmware:devfrom
jmz52:stm32duino
Aug 21, 2018
Merged

Add support for SSD1306 and SH1106 I2C displays for STM32F1#3
thinkyhead merged 3 commits intoMarlinFirmware:devfrom
jmz52:stm32duino

Conversation

@jmz52
Copy link
Copy Markdown
Contributor

@jmz52 jmz52 commented Aug 18, 2018

Description

Add support for SSD1306 and SH1106 I2C displays for STM32F1 and STM32F4.

Tested on STM32F103C8T6 board with 1.3" SH1106 and 0.96" SSD1306 I2C displays.

Benefits

STM32F1-based systems can use I2C OLED displays based on SSD1306 and SH1106 controllers.

Additional information

The binary.h file required by lcd/dogm/dogm_bitmaps.h is not present in stm32duino environment.
Binary macro are defined in other file in stm32duino, so binary.h needs to be created in HAL_STM32F1
either empty or with following code
#include "bit_constants.h"

Including Arduino.h from .c u8glib file causes compilation errors on stm32duino.
Including Arduino.h from .cpp works just fine.

Related Issues

MarlinFirmware/Marlin#11583

Add support for SSD1306 and SH1106 I2C displays for STM32F1 and STM32F4.
jmz52 added 2 commits August 18, 2018 15:31
Only use stm32duino code in stm32duino environment
@thinkyhead thinkyhead merged commit eff1b4d into MarlinFirmware:dev Aug 21, 2018
@thinkyhead
Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants