Coder Social home page Coder Social logo

stm32_hal_ssd1306's Introduction

stm32_hal_ssd1306

SSD1306, I2C, STM32 HAL

0. Development environment

1. Feature

  • Use I2C interface
  • Write string on the screen
  • SSD1306 commands are defined as functions

2. User Configuration

  • I2C1

STM32CubeMx Configuration

image

ssd1306.h

/* SSD1306 Interface */ 
#define SSD1306_I2C                     (&hi2c1)

3. main.c

stm32f411_fw_ssd1306/Core/Src/main.c

#include "ssd1306.h"

int main(void)
{
    ssd1306_init();

    ssd1306_write_string(font6x8, "ABC");
    ssd1306_enter();

    ssd1306_write_string(font7x10, "ABC");
    ssd1306_enter();

    ssd1306_write_string(font11x18, "ABC");
    ssd1306_enter();

    ssd1306_write_string(font16x26, "ABC");
    ssd1306_enter();

    ssd1306_update_screen();
}

Reference

https://github.com/afiskon/stm32-ssd1306

stm32_hal_ssd1306's People

Contributors

mokhwasomssi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

handiko

stm32_hal_ssd1306's Issues

줄바꿈 함수 추가

폰트 정보 저장해서 줄바꿈 함수 추가

ex)
write_string();
enter();
write_string();
enter();

폰트 높이 더해서 set_cursor 할 필요 없이, 이런 식으로 줄바꿈.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.