Aula Jazmati
Published © MIT

Raspberry Pi Camera Flash Using Hexabitz Modules

The purpose of this project is to get the best imaging whatever it is in the daytime or at night.

IntermediateFull instructions provided1 hour762
Raspberry Pi Camera Flash Using Hexabitz Modules

Things used in this project

Story

Read more

Schematics

Schematic

Code

The code

C/C++
/*
 BitzOS (BOS) V0.2.5 - Copyright (C) 2017-2021 Hexabitz
 All rights reserved

 File Name     : main.c
 Description   : Main program body.
 */
/* Includes ------------------------------------------------------------------*/
#include "BOS.h"

/* Private variables ---------------------------------------------------------*/
float x;

/* Private function prototypes -----------------------------------------------*/

/* Main function ------------------------------------------------------------*/

int main(void){

	Module_Init();		//Initialize Module &  BitzOS

	//Don't place your code here.
	for(;;){}
}

/*-----------------------------------------------------------*/

/* User Task */
void UserTask(void *argument){

ADCSelectChannel(2,"top");
while(1){


ReadADCChannel(2,"top", &x);

				Delay_ms(10);
						if ( x > 100.0 && x < 400.0)
						{
							RGB_LED_on(99);
							Delay_ms(100);
						}
						else if (x > 400.0) {

							RGB_LED_off();

						}



	}
}

/*-----------------------------------------------------------*/

H01R0x-Firmware

Credits

Aula Jazmati

Aula Jazmati

52 projects β€’ 215 followers
πŸ’‘πŸ•ŠοΈ

Comments