Skip to content

Commit 7fc1ef4

Browse files
authored
code for i2c oled 0.96" display using SSD1306
I created a header file for the graphics functions, as the compiler was complaining Usage with Arduino-Mk
1 parent c0e6c5d commit 7fc1ef4

File tree

3 files changed

+447
-0
lines changed

3 files changed

+447
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
ARDUINO_DIR = /usr/share/arduino
2+
ARDMK_DIR = /usr/share/arduino
3+
#AVR_TOOLS_DIR = /usr
4+
#ARDUINO_LIBS = Ethernet SPI
5+
ARDUINO_LIBS = Wire SPI Adafruit_BusIO Adafruit_GFX_Library Adafruit_SSD1306
6+
BOARD_TAG = uno
7+
#BOARD_TAG = yun
8+
MONITOR_PORT = /dev/ttyACM1
9+
AVRDUDE = /usr/share/arduino/hardware/tools/avrdude
10+
AVRDUDE_CONF = /usr/share/arduino/hardware/tools/avrdude.conf
11+
12+
include /usr/share/arduino/Arduino.mk
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
//ssd1306_128x64_fcts.h
2+
#ifndef SSD1306_FCTS_H
3+
#define SSD1306_FCTS_H 1
4+
5+
void testdrawline() ;
6+
void testdrawrect(void) ;
7+
void testfillrect(void) ;
8+
void testdrawcircle(void) ;
9+
void testfillcircle(void) ;
10+
void testdrawroundrect(void) ;
11+
void testfillroundrect(void) ;
12+
void testdrawtriangle(void) ;
13+
void testfilltriangle(void) ;
14+
void testdrawchar(void) ;
15+
void testdrawstyles(void) ;
16+
void testscrolltext(void) ;
17+
void testdrawbitmap(void) ;
18+
void testanimate(const uint8_t *bitmap, uint8_t w, uint8_t h) ;
19+
20+
#endif

0 commit comments

Comments
 (0)