久久久久久久999_99精品久久精品一区二区爱城_成人欧美一区二区三区在线播放_国产精品日本一区二区不卡视频_国产午夜视频_欧美精品在线观看免费
標題:
w5500服務器http_camera_html5_發微博 stm32源碼
[打印本頁]
作者:
聶德偉
時間:
2017-8-17 19:57
標題:
w5500服務器http_camera_html5_發微博 stm32源碼
w5500服務器的stm32源碼,實現http服務器 攝像頭 html5 以及發微博等功能
0.png
(47.22 KB, 下載次數: 156)
下載附件
2017-8-17 21:05 上傳
所有資料51hei提供下載:
http_camera_html5.rar
(1.28 MB, 下載次數: 81)
2017-8-17 19:55 上傳
點擊文件名下載附件
下載積分: 黑幣 -5
單片機源程序如下:
#include "mcu_init.h"
#include "config.h"
#include "device.h"
#include "w5500/spi2.h"
#include "weibo.h"
#include "httputil.h"
#include "iic.h"
#include "ov2640.h"
//html5
#include "sha1.h"
#include "base64.h"
#include "websocket.h"
#include <stdio.h>
vu32 ms=0;
vu8 sec=0,min=0;
vu8 hour=0;
vu32 sysTick=0;
uint8 reboot_flag=0;
//camera
u32 jpg_len=0;
u32 rd_ptr=0;
u32 jpg_offset=0;
u32 JPEGCnt=0;
u8 JPEGBuffer[JPG_BUF_SIZE];
u8 Flag_JPEGrec_Completed=0;
uint8 jpg_flag=0;
uint8 jpg_requested=0;
//#pragma location = "PictureAddress"
//__root const char CAMERA_PICTURE[];
//camera
void main()
{
RCC_Configuration(); // Configure the system clocks
GPIO_Configuration(); //GPIO configuration
NVIC_Configuration(); //NVIC Configuration
Timer_Configuration();
iic_init();
//ov2640_jpeg_config(JPEG_800x600);
ov2640_jpeg_config(JPEG_640x480);
//ov2640_jpeg_config(JPEG_320x240);
/* 設置COMS參數 */
ov2640_brightness_config(0x40);
ov2640_auto_exposure(3);//3
ov2640_contrast_config(0x28, 0x0c);
ov2640_black_white_config(0x00);
ov2640_color_saturation(0x68, 0x68);
ov2640_light_mode_config(OFFICE);
o2640_capture_gpio_init();
/* 關閉像素同步中斷 */
ov2640_interrupt_disable();
USART1_Init(); //115200@8-n-1
//UART4_Init(38400);//camera
printf("MCU initialized.\r\n");
Reset_W5500();
printf("Ethernet initialized over.\r\n");
WIZ_SPI_Init();
set_network();
printf("W5500 is ready!\r\n");
printf("camera init......OK\r\n");
JPEGCnt=0;
ov2640_interrupt_enable();
while(1)
{
do_websocket_server(SOCK_WEBSOCKET);
do_http();
}
}
/**************************/
/*****Timer2 interrupt*****/
/**************************/
void Timer2_ISR(void)
{
ms++;//mili second
sysTick++;//system tick
if(ms>=1000)//second
{
ms=0;
sec++;
}
if(sec>=60)//minute
{
sec=0;
min++;
}
if(min>=60)//hour
{
min=0;
hour++;
}
if(hour>=24)//day
{
hour=0;
}
}
復制代碼
作者:
289444124@qq.co
時間:
2018-5-25 11:21
能不能送我一份啊 我沒有下載貨幣了 289444124qq.com
作者:
frank_tw
時間:
2021-12-18 08:34
Good! Thanks!
歡迎光臨 (http://m.zg4o1577.cn/bbs/)
Powered by Discuz! X3.1
主站蜘蛛池模板:
五月天婷婷视频
|
国产成人在线观看免费网站
|
久久不卡
|
高h乱l高辣h文短篇h
|
日韩av中文字幕在线播放
|
国产欧美成人
|
国产不卡视频在线观看
|
成人免费福利
|
国产精品免费一区
|
91视频在线
|
视频一区二区在线播放
|
中文字幕在线一区二区三区
|
黄色三级视频网站
|
中文国产字幕
|
欧美一级片免费
|
www.一区
|
成人免费网站黄
|
亚洲国产欧美在线
|
午夜爱
|
色综合一区二区
|
亚洲精品乱码久久久久久蜜桃91
|
国产日韩精品在线
|
91麻豆产精品久久久久久夏晴子
|
国产视频一区在线观看
|
黄色特级毛片
|
一级免费毛片
|
久久综合伊人77777蜜臀
|
饥渴放荡受np公车奶牛
|
日韩精品一区二区三区免费视频
|
四虎精品视频
|
神马午夜嘿嘿
|
中文字幕免费观看
|
日韩免费在线观看
|
日韩在线网址
|
日本一级大毛片a一
|
在线观看日韩视频
|
日韩视频免费大全中文字幕
|
www国产精品
|
精品三级在线观看
|
在线网站免费观看18
|
四虎影视av
|