Hackster is hosting Hackster Holidays, Ep. 4: Livestream & Giveaway Drawing. Start streaming on Wednesday!Stream Hackster Holidays, Ep. 4 on Wednesday!
Aula πŸ’‘πŸ•ŠοΈ
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 hour766
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 πŸ’‘πŸ•ŠοΈ

Aula πŸ’‘πŸ•ŠοΈ

55 projects β€’ 216 followers
Electronic Engineering

Comments