Add support for SSD1306 and SH1106 I2C displays for STM32F1#3
Merged
thinkyhead merged 3 commits intoMarlinFirmware:devfrom Aug 21, 2018
Merged
Add support for SSD1306 and SH1106 I2C displays for STM32F1#3thinkyhead merged 3 commits intoMarlinFirmware:devfrom
thinkyhead merged 3 commits intoMarlinFirmware:devfrom
Conversation
Add support for SSD1306 and SH1106 I2C displays for STM32F1 and STM32F4.
Only use stm32duino code in stm32duino environment
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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