![]() |
no-OS
|
Implementation of ssd1306 example for demo project. More...
#include "common_data.h"
#include "no_os_util.h"
#include <stdint.h>
#include <stdio.h>
#include "no_os_delay.h"
#include "no_os_i2c.h"
#include "display.h"
#include "ssd_1306.h"
#include "lvgl.h"
#include "lv_types.h"
#include "lv_display.h"
#include "lv_display_private.h"
#include "no_os_init.h"
#include <string.h>
#include "no_os_display.h"
Macros | |
#define | LV_ATTRIBUTE_MEM_ALIGN |
#define | SSD1306_HOR_REZ 128 |
#define | SSD1306_VER_REZ 64 |
#define | SSD1306_BUFFER_SIZE ((SSD1306_HOR_REZ * SSD1306_VER_REZ) / 8 + 8) |
Functions | |
void | my_flush_cb (lv_display_t *disp, const lv_area_t *area, lv_color_t *color_p) |
int | display_task () |
Initialize the display task. | |
int | configure_uart () |
Configure the UART. | |
int | configure_display () |
Configure the display. | |
void | test_draw () |
Test function to draw a label with scrolling text. | |
void | startup_screen () |
Display startup screen. | |
int | example_main (void) |
Main function. | |
Variables | |
const LV_ATTRIBUTE_MEM_ALIGN uint8_t | star_wars_logo [] |
Implementation of ssd1306 example for demo project.
Copyright 2025(c) Analog Devices, Inc.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define LV_ATTRIBUTE_MEM_ALIGN |
#define SSD1306_BUFFER_SIZE ((SSD1306_HOR_REZ * SSD1306_VER_REZ) / 8 + 8) |
#define SSD1306_HOR_REZ 128 |
#define SSD1306_VER_REZ 64 |
int configure_display | ( | ) |
Configure the display.
int configure_uart | ( | ) |
Configure the UART.
int display_task | ( | ) |
Initialize the display task.
int example_main | ( | void | ) |
Main function.
Basic example main executiont.
Set the threshold voltage to 5V
The comparator output will be available on the GPO_A pin
Set the DAC output on channel C to 5V
Measure input current on channel D
Initialize the ADC_RDY GPIO and associated IRQ event
Negative temperature
Positive temperature
Negative temperature
Positive temperature
void my_flush_cb | ( | lv_display_t * | disp, |
const lv_area_t * | area, | ||
lv_color_t * | color_p ) |
void startup_screen | ( | ) |
Display startup screen.
void test_draw | ( | ) |
Test function to draw a label with scrolling text.
const LV_ATTRIBUTE_MEM_ALIGN uint8_t star_wars_logo[] |