Reply To: [Resolved]Unable to open I2C bus

Home Forums Forums Technical Support for BerryIMU [Resolved]Unable to open I2C bus Reply To: [Resolved]Unable to open I2C bus

#3997
jawood
Participant

Im assuming I add

SDL_WM_ToggleFullScreen(SDL_Surface *surface);

I added it to function:-

//Initialise SDL and Disable Mouse
SDL_Init(SDL_INIT_VIDEO);
SDL_ShowCursor(SDL_DIABLE);
SDL_WM_ToggleFullScreen(SDL_Surface *surface);

Compile:-

gcc -o KalmanFilterLevelMeter1 -lm LevelMeterKalmanFiltered.c sdl-config --cflags sdl-config --libs -lSDL_image -lSDL_gfx

And get error:-

LevelMeterKalmanFiltered.c: In function ‘startSDL’:
LevelMeterKalmanFiltered.c:233:26: error: expected expression before ‘SDL_Surface’
LevelMeterKalmanFiltered.c:236:19: warning: assignment discards ‘const’ qualifier from pointer target type [enabled by default]
LevelMeterKalmanFiltered.c: In function ‘graphics’:
LevelMeterKalmanFiltered.c:299:38: warning: assignment makes pointer from integer without a cast [enabled by default]
LevelMeterKalmanFiltered.c:300:39: warning: assignment makes pointer from integer without a cast [enabled by default]

Blip, blop, bloop...