iforce2d Chris / Mbed 2 deprecated ubxDistanceMeter

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers u8g_dev_null.c Source File

u8g_dev_null.c

00001 /*
00002 
00003   u8g_dev_null.c
00004 
00005   Universal 8bit Graphics Library
00006   
00007   Copyright (c) 2011, olikraus@gmail.com
00008   All rights reserved.
00009 
00010   Redistribution and use in source and binary forms, with or without modification, 
00011   are permitted provided that the following conditions are met:
00012 
00013   * Redistributions of source code must retain the above copyright notice, this list 
00014     of conditions and the following disclaimer.
00015     
00016   * Redistributions in binary form must reproduce the above copyright notice, this 
00017     list of conditions and the following disclaimer in the documentation and/or other 
00018     materials provided with the distribution.
00019 
00020   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 
00021   CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, 
00022   INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 
00023   MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 
00024   DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR 
00025   CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
00026   SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
00027   NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 
00028   LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 
00029   CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 
00030   STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
00031   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF 
00032   ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.  
00033   
00034   
00035 */
00036 
00037 #include "u8g.h"
00038 
00039 uint8_t u8g_dev_null(u8g_t *u8g, u8g_dev_t *dev, uint8_t msg, void *arg)
00040 {
00041   switch(msg)
00042   {
00043     case U8G_DEV_MSG_SET_8PIXEL:                /* most often used command */
00044       break;
00045     case U8G_DEV_MSG_SET_PIXEL:
00046       break;
00047     case U8G_DEV_MSG_INIT:
00048       break;
00049     case U8G_DEV_MSG_STOP:
00050       break;
00051     case U8G_DEV_MSG_PAGE_FIRST:
00052       break;
00053     case U8G_DEV_MSG_PAGE_NEXT:
00054       break;
00055 #ifdef U8G_DEV_MSG_IS_BBX_INTERSECTION
00056     case U8G_DEV_MSG_IS_BBX_INTERSECTION:
00057       return 1;
00058 #endif
00059     case U8G_DEV_MSG_GET_PAGE_BOX:
00060       break;
00061     case U8G_DEV_MSG_SET_COLOR_ENTRY:
00062       break;
00063     case U8G_DEV_MSG_SET_XY_CB:
00064       break;
00065   }
00066   return 1;
00067 }
00068