hi am einfachsten ist es du nimmst die dev20120414. da ist der ganze code für das oled eingepflegt.
in der config.h bitte wie folgt aktivieren:
Code: Alles auswählen
/********************************************************************/
/**** LCD - display settings ****/
/********************************************************************/
/* In order to save space, it's possibile to desactivate the LCD configuration functions
comment this line only if you don't plan to used a LCD */
#define LCD_CONF
/* to include setting the aux switches for AUX1 -> AUX4 via LCD */ //to review (activate[] is now 16 bit long)
#define LCD_CONF_AUX
/* choice of LCD attached for configuration and telemetry, see notes below */
//#define LCD_SERIAL3W // Alex' initial variant with 3 wires, using rx-pin for transmission @9600 baud fixed
/* serial (wired or wireless via BT etc.) */
//#define LCD_TEXTSTAR // Cat's Whisker LCD_TEXTSTAR Module CW-LCD-02 (Which has 4 input keys for selecting menus)
//#define LCD_VT100 // vt100 compatible terminal emulation (blueterm, putty, etc.)
/* i2c devices */
//#define LCD_ETPP // Eagle Tree Power Panel LCD, which is i2c (not serial)
//#define LCD_LCD03 // LCD03, which is i2c
#define OLED
//#define OLED_I2C_128x64 // OLED http://www.multiwii.com/forum/viewtopic.php?f=7&t=1350
#define NEW_OLED_FONT // OLED use other font (more lines)
/* style of display - autodetected by LCD_ setting - only activate to overwrite defaults */
//#define DISPLAY_2LINES
#define DISPLAY_MULTILINE
Code: Alles auswählen
/********************************************************************/
/**** telemetry ****/
/********************************************************************/
/* to monitor system values (battery level, loop time etc. with LCD enable this */
/* note: for now you must send single characters to request different pages */
/* Buttons toggle request for page on/off */
/* The active page on the LCD does get updated automatically */
/* Easy to use with Terminal application or display like LCD - if available uses the 4 preconfigured buttons to send 'A', 'B', 'C', 'D' */
#define LCD_TELEMETRY
/* to enable automatic hopping between a choice of telemetry pages uncomment this. */
/* This may be useful if your LCD has no buttons or the sending is broken */
/* hopping is activated and deactivated in unarmed mode with throttle=low & roll=left & pitch=forward */
/* set it to the sequence of telemetry pages you want to see */
/* 2 line displays support pages 1-9 */
/* multiline displays support pages 1-4 */
#define LCD_TELEMETRY_AUTO "3452" // pages 1 to 7 in ascending order
//#define LCD_TELEMETRY_AUTO "212232425262729" // strong emphasis on page 2
Code: Alles auswählen
/********************************************************************/
/**** diagnostics ****/
/********************************************************************/
/* to log values like max loop time and others to come */
/* logging values are visible via LCD config */
/* set to 2, if you want powerconsumption on a per motor basis (this uses the big array and is a memory hog, if POWERMETER <> PM_SOFT) */
#define LOG_VALUES 1
die letzte codeänderung entnimmst du bitte hier:
http://www.multiwii.com/forum/viewtopic ... =50#p12353
dann sollte alles klappen!