Skip to content

Commit

Permalink
add I2C oled support
Browse files Browse the repository at this point in the history
  • Loading branch information
MikyM0use authored and MikyM0use committed Sep 18, 2016
1 parent 59e0d5c commit a335bd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jafar_sketch/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ This file is part of Fatshark© goggle rx module project (JAFaR).
#define USE_DIVERSITY
//#define USE_OLED

//#define USE_I2C_OLED

//DEBUG STUFF
//#define DEBUG
//#define ENABLE_RSSILOG
Expand Down
5 changes: 5 additions & 0 deletions jafar_sketch/jafar_sketch.ino
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ uint8_t menu_pos;

#include "U8glib.h"

#ifdef USE_I2C_OLED
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_DEV_0 | U8G_I2C_OPT_NO_ACK | U8G_I2C_OPT_FAST); // Fast I2C / TWI
#else
U8GLIB_SSD1306_128X64 u8g(8, A1, A4, 11 , 13); //CLK, MOSI, CS, DC, RESET
#endif

char j_buf[80];

#else //USE OSD
Expand Down

0 comments on commit a335bd0

Please sign in to comment.