I am using the wonderful u8glib. Is there anyway to initialize based on a variable?
Right now I have have to comment and uncomment based on which initialization parameter i would like to use
Because this is not the only library i need to comment/uncomment (i have about 7 “profiles” of intialization settings for various libraries) I would love to do it in a switch case or with a function.
Any help would be appreciated.
#include <stdlib.h> // for itoa
SoftwareSerial bluetooth(BT_RX_PIN,BT_TX_PIN); // RX | TX
//U8GLIB_SH1106_128X64 u8g(U8G_I2C_OPT_NONE); // I2C / TWI
U8GLIB_SSD1306_128X32 u8g(U8G_I2C_OPT_NONE); // I2C / TWI
//ANGEL LED, A1
//U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE|U8G_I2C_OPT_DEV_0); // I2C / TWI