This commit is contained in:
matiasus 2022-11-22 21:49:35 +01:00
parent 8832e35f97
commit 98c1626e04
4 changed files with 7 additions and 7 deletions

View File

@ -13,11 +13,13 @@
* @depend
* ---------------------------------------------------------------+
*/
#include <avr/pgmspace.h>
#ifndef __FONT_H__
#define __FONT_H__
// includes
#include <avr/pgmspace.h>
// Characters definition
// -----------------------------------
// number of columns for chars

View File

@ -271,7 +271,7 @@ uint8_t SSD1306_NormalScreen (uint8_t address)
*/
uint8_t SSD1306_InverseScreen (uint8_t address)
{
uint8_t status = INIT_STATUS;
uint8_t status = INIT_STATUS; // TWI init status 0xFF
// TWI start & SLAW
// -------------------------------------------------------------------------------------

View File

@ -23,14 +23,11 @@
#ifndef __SSD1306_H__
#define __SSD1306_H__
<<<<<<< HEAD
// include libraries
#include <string.h>
#include <string.h> // memset
#include "font.h"
#include "twi.h"
=======
>>>>>>> origin/develop
// Success
// -------------------------------------------
#define SSD1306_SUCCESS 0

3
main.c
View File

@ -23,6 +23,7 @@
// include libraries
#include "lib/ssd1306.h"
#include <util/delay.h>
#include <stdio.h>
/**
* @desc Main function
@ -41,7 +42,7 @@ int main(void)
SSD1306_Init (addr);
// clear screen
SSD1306_ClearScreen (addr);
SSD1306_ClearScreen ();
// draw line
SSD1306_DrawLine (0, MAX_X, 4, 4);
// set position