Ashok R
Published © GPL3+

AI Smart Draw with Brainium IoT Cloud

It's a simple demonstration of AI (motion detection) with Brainium cloud module and Rapid IoT Prototyping Kit.

IntermediateShowcase (no instructions)4 hours1,292
AI Smart Draw with Brainium IoT Cloud

Things used in this project

Story

Read more

Code

Main

C/C++
    while (1)
    {


    		if(g_ButtonPress){


				switch(g_ButtonValue){

				case 0:


					break;

				case 1:
					ESP_Init();
					break;

				case 2:
					ESP_Reset();
					break;

				}

				g_ButtonValue = 0;
				g_ButtonPress = false;

    		}


				App_WaitMsec(10);
				g_cloud_counter++;

				if(g_cloud_counter>= APP_CLOUD_TIMER){

					ret |= ESP_ReadCloud();
					g_cloud_counter=0;

					if(cfield1==1){

						GUI_BMP_Draw(lcon_circle_96x96, 40, 40);

						GUI_DispStringAt("  Circle  ", 45, 140);
					}

					if(cfield1==2){

						GUI_BMP_Draw(lcon_triangle_96x96, 40, 40);

						GUI_DispStringAt("Triangle", 45, 140);
					}


				}


    }

Credits

Ashok R

Ashok R

37 projects • 102 followers
Hobbyist/Engineer/Director/Animatior

Comments