Skip to content

Commit

Permalink
Added includes to avoid compiler warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliomoro committed Sep 10, 2019
1 parent 31f0f93 commit a55b2bd
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 18 deletions.
1 change: 1 addition & 0 deletions Example_Code/Main.c
Expand Up @@ -17,6 +17,7 @@
/* Header Files */
#include "I2C.h"
#include "SSD1306_OLED.h"
#include "example_app.h"

/* Externs - I2C.c */
extern I2C_DeviceT I2C_DEV_2;
Expand Down
20 changes: 2 additions & 18 deletions Example_Code/example_app.c
Expand Up @@ -34,7 +34,9 @@ SOFTWARE.
#include <string.h>
#include <stdint.h>
#include <signal.h>
#include <unistd.h>
#include "SSD1306_OLED.h"
#include "example_app.h"

/* MACRO's */
#define LOGO16_GLCD_HEIGHT 16
Expand All @@ -47,24 +49,6 @@ SOFTWARE.
/* Extern volatile */
extern volatile unsigned char flag;

/* Function Declarations */
void testdrawline();
void testdrawrect();
void testfillrect();
void testdrawcircle();
void testdrawroundrect();
void testdrawtriangle();
void testfilltriangle();
void testdrawchar();
void testscrolltext();
void display_texts();
void display_texts();
void display_bitmap();
void display_invert_normal();
void testdrawbitmap(const unsigned char *bitmap, unsigned char w, unsigned char h);
void testdrawbitmap_eg();
void deeplyembedded_credits();

/* Bit Map - Taken from Adafruit SSD1306 OLED Library */
static const unsigned char logo16_glcd_bmp[] =
{
Expand Down
18 changes: 18 additions & 0 deletions Example_Code/example_app.h
@@ -0,0 +1,18 @@
void testdrawline();
void testdrawrect();
void testfillrect();
void testdrawcircle();
void testdrawroundrect();
void testfillroundrect();
void testdrawtriangle();
void testfilltriangle();
void testdrawchar();
void testscrolltext();
void display_texts();
void display_texts();
void display_bitmap();
void display_invert_normal();
void testdrawbitmap(const unsigned char *bitmap, unsigned char w, unsigned char h);
void testdrawbitmap_eg();
void deeplyembedded_credits();

1 change: 1 addition & 0 deletions I2C_Library/I2C.c
Expand Up @@ -34,6 +34,7 @@ SOFTWARE.
#include<stdio.h>
#include<fcntl.h>
#include<sys/ioctl.h>
#include <unistd.h>
#include <linux/i2c-dev.h>
// heuristic to guess what version of i2c-dev.h we have:
// the one installed with `apt-get install libi2c-dev`
Expand Down
1 change: 1 addition & 0 deletions SSD1306_OLED_Library/SSD1306_OLED.c
Expand Up @@ -34,6 +34,7 @@ SOFTWARE.
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <math.h>
#include "I2C.h"
#include "SSD1306_OLED.h"
#include "gfxfont.h"
Expand Down

0 comments on commit a55b2bd

Please sign in to comment.