Skip to content

Commit

Permalink
looper demo
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Oct 30, 2022
1 parent 86fa0ff commit e910cca
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
68 changes: 68 additions & 0 deletions apps/obk_test_loop/src/user_main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/*
* @Author: yj
* @email: [email protected]
* @LastEditors: yj
* @file name: tuya_device.c
* @Description: template demo for SDK WiFi & BLE for BK7231T
* @Copyright: HANGZHOU TUYA INFORMATION TECHNOLOGY CO.,LTD
* @Company: http://www.tuya.com
* @Date: 2021-01-23 16:33:00
* @LastEditTime: 2021-01-27 17:00:00
*/

#define _TUYA_DEVICE_GLOBAL

/* Includes ------------------------------------------------------------------*/
#include "uni_log.h"
#include "tuya_iot_wifi_api.h"
#include "tuya_hal_system.h"
#include "tuya_iot_com_api.h"
#include "tuya_cloud_com_defs.h"
#include "gw_intf.h"
#include "gpio_test.h"
#include "tuya_gpio.h"
#include "tuya_key.h"
#include "tuya_led.h"
#include "wlan_ui_pub.h"

#include "lwip/sockets.h"
#include "lwip/ip_addr.h"
#include "lwip/inet.h"

#include "mem_pub.h"
#include "str_pub.h"
#include "ethernet_intf.h"

#include <saradc_pub.h>
#include <drv_model_pub.h>



const char *CFG_GetDeviceName() {
return "obk_test_loop";
}


// receives status change notifications about wireless - could be useful
// ctxt is pointer to a rw_evt_type
void wl_status( void *ctxt ){


}

void user_main(void)
{
OSStatus err;
int i;

i = 0;

bk_printf("[OpenBK2731T ObkLooper]!\r\n");


while(1) {
bk_printf("[ObkLooper] %i\r\n",i);
rtos_delay_milliseconds(100);
i++;
}
}
1 change: 1 addition & 0 deletions b_obk_test_loop.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./build_app.sh apps/obk_test_loop obk_test_loop git

0 comments on commit e910cca

Please sign in to comment.