29 #ifndef _SSD1306V2_LINUX_IO_H_ 30 #define _SSD1306V2_LINUX_IO_H_ 32 #define CONFIG_LINUX_I2C_AVAILABLE 33 #define CONFIG_LINUX_SPI_AVAILABLE 35 #include "../UserSettings.h" 37 #if defined(SDL_EMULATION) // SDL Emulation mode includes 54 void ssd1306_registerPinEvent(
int pin,
void (*on_pin_change)(
void *),
void *arg);
55 void ssd1306_unregisterPinEvent(
int pin);
57 int min(
int a,
int b);
58 int max(
int a,
int b);
60 static inline char *utoa(
unsigned int num,
char *str,
int radix)
70 int digit = (
unsigned int)num % radix;
72 temp[temp_loc++] = digit +
'0';
74 temp[temp_loc++] = digit - 10 +
'A';
75 num = ((
unsigned int)num) / radix;
76 }
while ((
unsigned int)num > 0);
82 while ( temp_loc >=0 ) {
83 str[str_loc++] = temp[temp_loc--];