• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ OLED_ShowString函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C++中OLED_ShowString函数的典型用法代码示例。如果您正苦于以下问题:C++ OLED_ShowString函数的具体用法?C++ OLED_ShowString怎么用?C++ OLED_ShowString使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了OLED_ShowString函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: user_modules_init

OSStatus user_modules_init(void)
{
  OSStatus err = kUnknownErr;
  
  // init DC Motor(GPIO)
  dc_motor_init();
  dc_motor_set(0);   // off
  
  // init RGB LED(P9813)
  hsb2rgb_led_init();
  hsb2rgb_led_open(0, 0, 0);  // off
  
  // init OLED
  OLED_Init();
  //OLED_Clear();
  LCD_Clear(0x00);
  OLED_ShowString(20,0,"M X C H I P");
  OLED_ShowString(20,3,(uint8_t*)DEFAULT_DEVICE_NAME); 
  OLED_ShowString(0,6,"T: 0C  H: 0%");
  
  // init Light sensor(ADC)
  light_sensor_init();
  
  // init infrared sensor(ADC)
  infrared_reflective_init();
  
  // init user key1 && key2
  user_key1_init();
  user_key2_init();
  
  err = kNoErr;
 
  return err;
}
开发者ID:wangeshen,项目名称:MICO,代码行数:34,代码来源:user_main.c


示例2: alert_signal

/**@brief Signals alert event from Immediate Alert or Link Loss services.
 *
 * @param[in]   alert_level  Requested alert level.
 */
static void alert_signal(uint8_t alert_level)
{
    switch (alert_level)
    {
        case BLE_CHAR_ALERT_LEVEL_NO_ALERT:
            m_is_link_loss_alerting = false;
            alert_led_blink_stop();
				     #if OLED096_Func 
					       	OLED_ShowString(48,16, (uint8_t*)"   ");
	               OLED_Refresh_Gram();
					       #endif	
            break;

        case BLE_CHAR_ALERT_LEVEL_MILD_ALERT:
            alert_led_blink_start();
            break;

        case BLE_CHAR_ALERT_LEVEL_HIGH_ALERT:
            alert_led_blink_stop();
            nrf_gpio_pin_set(ALERT_PIN_NO);
				    #if OLED096_Func 
					       	OLED_ShowString(48,16, (uint8_t*)"ALT");
	               OLED_Refresh_Gram();
					       #endif	
            break;
            
        default:
            break;
    }
}
开发者ID:johnsonhk88,项目名称:nrf51-ble-fittless-wearable,代码行数:34,代码来源:ble_proximity.c


示例3: menu_Showtime

void menu_Showtime()
{	
		OLED_ShowNum(0,0,Time/3600,2,16,0);
//		OLED_ShowString(16,0,":");
		OLED_ShowNum(24,0,Time%3600/60,2,16,0);
//		OLED_ShowString(40,0,":");
		OLED_ShowNum(48,0,Time%60,2,16,0);
	
			OLED_ShowNum(0,2,img.CerPtx,3,16,1);
			OLED_ShowNum(32,2,img.CerPty,3,16,1);			
			OLED_ShowNum(64,2,img.CerR,3,16,1);
			OLED_ShowNum(98,2,img.rate,3,16,1);
	
			OLED_ShowNum(0,4,img.Line[0].pt1x,3,16,1);
			OLED_ShowNum(32,4,img.Line[0].pt1y,3,16,1);		
			OLED_ShowNum(64,4,img.Line[0].pt2x,3,16,1);
			OLED_ShowNum(98,4,img.Line[0].pt2y,3,16,1);
			
			
	
	    switch(FLYMODE)
			{
				case CTRLP:
					OLED_ShowString(50,6,"CTRLP");
				break;
				case _A_B_:
					OLED_ShowString(50,6,"_A_B_");
				break;
			}
}
开发者ID:SunaShen,项目名称:aircraft-test,代码行数:30,代码来源:menu.c


示例4: mico_system_delegate_config_success

void mico_system_delegate_config_success( mico_config_source_t source )
{
  config_delegate_log_trace();
#ifdef USE_MiCOKit_EXT
  char oled_show_line[OLED_DISPLAY_MAX_CHAR_PER_ROW+1] = {'\0'};
#endif
  
  config_delegate_log( "Wi-Fi configed by: %d", source );

  MicoGpioOutputLow((mico_gpio_t)MICO_SYS_LED);  
  
#ifdef USE_MiCOKit_EXT
  memset(oled_show_line, '\0', OLED_DISPLAY_MAX_CHAR_PER_ROW+1);
  if(CONFIG_BY_AIRKISS == source){
    snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"Airkiss success ");
  }else if(CONFIG_BY_SOFT_AP == source){
    snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"SoftAP success  ");
  }else if(CONFIG_BY_WAC == source){
    snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"WAC success     ");
  }else if( (CONFIG_BY_EASYLINK_V2 == source) || (CONFIG_BY_EASYLINK_PLUS == source) || 
           (CONFIG_BY_EASYLINK_MINUS == source) ){
    snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"Easylink success");
  }else{
    snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"Unknown         ");
  }
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_2, (uint8_t*)oled_show_line);
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_3, (uint8_t*)"                ");
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_4, (uint8_t*)"                ");
#endif
  
  return;
}
开发者ID:brucehelen,项目名称:MICO3288,代码行数:32,代码来源:MICOConfigDelegate.c


示例5: ConfigEasyLinkIsSuccess

void ConfigEasyLinkIsSuccess( mico_Context_t * const inContext )
{
  (void)(inContext); 
  config_delegate_log_trace();
#ifdef USE_MiCOKit_EXT
  char oled_show_line[OLED_DISPLAY_MAX_CHAR_PER_ROW+1] = {'\0'};
#endif

  mico_stop_timer(&_Led_EL_timer);
  mico_deinit_timer( &_Led_EL_timer );
  mico_init_timer(&_Led_EL_timer, SYS_LED_TRIGGER_INTERVAL_AFTER_EASYLINK, _led_EL_Timeout_handler, NULL);
  mico_start_timer(&_Led_EL_timer);
#ifdef USE_MiCOKit_EXT
  memset(oled_show_line, '\0', OLED_DISPLAY_MAX_CHAR_PER_ROW+1);
  snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%s", (uint8_t*)"EasyLink got    ");
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_2, (uint8_t*)oled_show_line);
  memset(oled_show_line, '\0', OLED_DISPLAY_MAX_CHAR_PER_ROW+1);
  snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%16s", inContext->flashContentInRam.micoSystemConfig.ssid);
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_3, (uint8_t*)oled_show_line);
  memset(oled_show_line, '\0', OLED_DISPLAY_MAX_CHAR_PER_ROW+1);
  snprintf(oled_show_line, OLED_DISPLAY_MAX_CHAR_PER_ROW+1, "%16s", inContext->flashContentInRam.micoSystemConfig.user_key);
  OLED_ShowString(OLED_DISPLAY_COLUMN_START, OLED_DISPLAY_ROW_4, (uint8_t*)oled_show_line);
#endif
  return;
}
开发者ID:liquanqing,项目名称:RGBLED_Text,代码行数:25,代码来源:MICOConfigDelegate.c


示例6: osd_iris_val_disp

void osd_iris_val_disp(u8 irisv)
{
	if(iris_mode>1)
		iris_mode = 1;

	u8 tmp;
	u8 no_val_str[]={"---"};



	if(iris_motor_mode > 4)
		{
		OLED_ShowString(OSD_IRIS_X_START,OSD_LINE3_Y_POS,(u8*)iris_msg_osd[5],16); 
	}
	else
		{
		OLED_ShowString(OSD_IRIS_X_START,OSD_LINE3_Y_POS,(u8*)iris_msg_osd[iris_motor_mode],16); 

		}

#if 0
	iris_motor_mode = 1;
	iris_mode = 1;
	iris_val = 50;
#endif

	if(0 == iris_motor_mode)
	{

		memset(iris_val_osd_buf,0,10);
//		strcat(iris_val_osd_buf,no_val_str);
//
//		OLED_ShowString(88,OSD_LINE3_Y_POS,iris_val_osd_buf,16); 
			
	}
	else
	{
			
		memset(iris_val_osd_buf,0,10);
		strcat(iris_val_osd_buf,iris_mode_osd[iris_mode]);
		
		if(iris_mode)
		{
			if(iris_val == 0xff)
			{
				strcat(iris_val_osd_buf,no_val_str);
			}
			else
			{
				num_to_string_ex((u16)iris_val,iris_val_osd_buf+1,3);
			}
			
		}
		OLED_ShowString(88,OSD_LINE3_Y_POS,iris_val_osd_buf,16); 

	}
	


}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:60,代码来源:osd_menu.c


示例7: Mode_Idle_Init

extern void Mode_Idle_Init(void)
{
#ifdef INCLUDE_OLED12832
	uint8_t timeTemp[17];
	sprintf((char *)timeTemp, "%02d:%02d:%02d 2016/4", sysTime.Hour, sysTime.Minute, sysTime.Second);
	OLED_ShowString(0, 0, "Tag Test");  
	OLED_ShowString(0, 16, timeTemp);
#endif	
}
开发者ID:DemonTu,项目名称:ALL_FrameWrok_M4,代码行数:9,代码来源:main.c


示例8: osd_baudrate_disp

void osd_baudrate_disp(u16 data)
{
	if(data > 3)
		return;
	
	OLED_ShowString(OSD_LINE1_X_POS,OSD_BAUDRATE_ID_Y_POS,(u8 *)baudrate_string[data],16);
	OLED_ShowString(OSD_LINE1_X_POS+32,OSD_BAUDRATE_ID_Y_POS,"BPS",16);  


	
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:11,代码来源:osd_menu.c


示例9: ShowHomePageInit

void ShowHomePageInit(void)
{
	OLED_ShowString(0, 0, "Roll:  0.0    ");
	OLED_ShowString(0, 2, "Pitch: 0.0    ");
	OLED_ShowString(0, 4, "Yaw:   0.0    ");
	OLED_ShowString(0, 6, "Power: 0.0V   ");
	ShowBattery();
	ShowLockStat();
	ShowRuning();
	OLED_DrawBMP(112, 6, 128, 8, BLACK_FILL_BMP);
}
开发者ID:MiaowLabs,项目名称:Littlebuzz-remote-none,代码行数:11,代码来源:display.c


示例10: osd_para_mode_disp_xy

void osd_para_mode_disp_xy(u8 mode,u8 x,u8 y)
{
	u8 *mstr="Mode";
	u8 pp;

	if(mode > 8)
		return;
	OLED_ShowString(OSD_PARA_MODE_X_START,OSD_PARA_MODE_Y,mstr,16); 
	
	pp = mode+0x31;
	OLED_ShowString(OSD_SET_PARA_START_ADDR,0,&pp,16); 
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:12,代码来源:osd_menu.c


示例11: osd_para_mode_disp

void osd_para_mode_disp(u8 mode)
{
	u8 *mstr="Mode";
	u8 pp;

	if(mode > 8)
		return;
	OLED_ShowString(OSD_PARA_MODE_X_START,OSD_PARA_MODE_Y,mstr,16); 
	
	pp = mode+0x31;
	OLED_ShowString(OSD_PARA_MODE_X_START+32,OSD_PARA_MODE_Y,&pp,16); 
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:12,代码来源:osd_menu.c


示例12: osd_iris_mode_disp

void osd_iris_mode_disp(u8 mode)
{
	if(mode == 0xff)
	{
		OLED_ShowString(OSD_IRIS_MODE_X_START,OSD_IRIS_MODE_Y,(u8*)iris_msg_string[IRIS_MSG_ITERMS_MAX-1],16); 

		return;
	}
	if(mode > IRIS_MSG_ITERMS_MAX-1)
		return;
	OLED_ShowString(OSD_IRIS_MODE_X_START,OSD_IRIS_MODE_Y,(u8*)iris_msg_string[mode],16); 

}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:13,代码来源:osd_menu.c


示例13: osd_iris_mode_disp_xy

void osd_iris_mode_disp_xy(u8 mode,u8 x,u8 y)
{
	if(mode == 0xff)
	{
		OLED_ShowString(OSD_IRIS_MODE_X_START,OSD_IRIS_MODE_Y,(u8*)iris_msg_string[IRIS_MSG_ITERMS_MAX-1],16); 

		return;
	}
	if(mode > IRIS_MSG_ITERMS_MAX-1)
		return;
	OLED_ShowString(OSD_SET_PARA_START_ADDR,0,(u8*)iris_msg_string[mode],16); 

}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:13,代码来源:osd_menu.c


示例14: osd_shutter_val_disp

void osd_shutter_val_disp(u8 sv)
{
	if(sv)
	{
	OLED_ShowString(0,OSD_LINE3_Y_POS,(u8*)osd_shutter_string,16); 

	}
	else
	{
	OLED_ShowString(0,OSD_LINE3_Y_POS,(u8*)osd_shutter_string,16); 
	OLED_ShowString(16,OSD_LINE3_Y_POS,(u8*)auto_string,16); 

	}
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:14,代码来源:osd_menu.c


示例15: osd_filter_mode_disp_xy

void osd_filter_mode_disp_xy(u8 mode,u8 x,u8 y)
{
	if(mode == 0xff)
	{
		OLED_ShowString(OSD_FILTER_MODE_X_START,OSD_FILTER_MODE_Y,(u8*)filter_string[4],16); 
		return;
	}

	
	if(mode > 3)
		return;
	OLED_ShowString(OSD_SET_PARA_START_ADDR,0,(u8*)filter_string[mode],16); 

}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:14,代码来源:osd_menu.c


示例16: osd_filter_mode_disp

void osd_filter_mode_disp(u8 mode)
{
	if(mode == 0xff)
	{
		OLED_ShowString(OSD_FILTER_MODE_X_START,OSD_FILTER_MODE_Y,(u8*)filter_string[4],16); 
		return;
	}

	
	if(mode > 3)
		return;
	OLED_ShowString(OSD_FILTER_MODE_X_START,OSD_FILTER_MODE_Y,(u8*)filter_string[mode],16); 

}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:14,代码来源:osd_menu.c


示例17: osd_opt_message_disp

void osd_opt_message_disp(u8 type,u16 wait_s)
{
	if(type > OPT_MSG_ITERMS_MAX-1)
		return;

	osd_line1_val_disp_clear();	

	OLED_ShowString(0,OSD_VAL_START_ADDR_Y,(u8*)opt_msg_string[type],16);  


	u16 k=wait_s;
	while(k--)
	{
		key_from_wait = key_detect();
		if(key_from_wait)
		{
			
			break;
		}
		rt_thread_delay(50);

	}
	osd_line1_val_disp_clear();	

	
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:26,代码来源:osd_menu.c


示例18: Mode_Idle_Proc

extern void Mode_Idle_Proc(uint8_t evt)
{
	uint8_t timeTemp[17];
	
	switch(evt){
		case evtTime1s:
			if (++sysTime.Second >= 60){
				sysTime.Second = 0;
				if (++sysTime.Minute >= 60){
					sysTime.Minute = 0;
					if (++sysTime.Hour >= 24){
						sysTime.Hour = 0;
					}
				}
			}
			#ifdef INCLUDE_OLED12832
			sprintf((char *)timeTemp, "%02d:%02d:%02d 2016/4", sysTime.Hour, sysTime.Minute, sysTime.Second);
			OLED_ShowString(0, 16 , timeTemp);
			//oledShowBmpTest();
			#endif	
			break;
		default:
			
			break;
	}

}
开发者ID:DemonTu,项目名称:ALL_FrameWrok_M4,代码行数:27,代码来源:main.c


示例19: menu_key

void menu_key()
{
	switch(Key_Scan())
	{
		case 1:
			menu_Mode = show_time_1;
		break;
		case 2:
			menu_Mode = show_sen_1;
		break;
		case 3:
			menu_Mode = set_sen_1;
		break;
		case 4:
			
		break;
		case 5:
		OLED_ShowString(0,6,"qifei");
		FLYSTATE = 1;
		break;
		case 6:	
			menu_Mode = show_time_1;
		break;
		default:
			break;
	}
}
开发者ID:SunaShen,项目名称:aircraft-test,代码行数:27,代码来源:menu.c


示例20: osd_opt_message_disp_iris

void osd_opt_message_disp_iris(u8 val)
{

	osd_line1_val_disp_clear();	

	OLED_ShowString(0,OSD_VAL_START_ADDR_Y,(u8*)iris_msg_osd[val],16);  
	
}
开发者ID:pigeon0411,项目名称:eb120_ec11_new,代码行数:8,代码来源:osd_menu.c



注:本文中的OLED_ShowString函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ OLESTR函数代码示例发布时间:2022-05-30
下一篇:
C++ OLE2T函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap