This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : | |
| Date : 2018/01/09 | |
| By : CharlotteHonG | |
| Final: 2018/01/09 | |
| *****************************************************************/ | |
| #pragma once | |
| #include "cuda_runtime.h" | |
| #include "device_launch_parameters.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : 讀寫BMP檔案 | |
| Date : 2017/11/10 | |
| By : CharlotteHonG | |
| Final: 2019/08/07 | |
| readME : http://bit.ly/2LTHGWN | |
| site : https://charlottehong.blogspot.com/2017/06/c-raw-bmp.html | |
| *****************************************************************/ | |
| #include <stdlib.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : 畫箭頭 | |
| Date : 2017/11/09 | |
| By : CharlotteHonG | |
| Final: 2017/11/11 | |
| *****************************************************************/ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <vector> | |
| #include <cmath> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : | |
| Date : 2017/10/23 | |
| By : CharlotteHonG | |
| Final: 2017/10/23 | |
| *****************************************************************/ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <cstring> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /*---------------------------------------------------------------- | |
| Arduino背板初始化設定函式 | |
| ----------------------------------------------------------------*/ | |
| /* 腳位定義 */ | |
| #define ArD0_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD1_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD2_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD3_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
| #define ArD4_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD5_GPIO_PORT ((GPIO_TypeDef*)GPIOA) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Arduino D0~D15 腳位定義 | |
| */ | |
| #define ArD0_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD1_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD2_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD3_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
| #define ArD4_GPIO_PORT ((GPIO_TypeDef*)GPIOG) | |
| #define ArD5_GPIO_PORT ((GPIO_TypeDef*)GPIOA) | |
| #define ArD6_GPIO_PORT ((GPIO_TypeDef*)GPIOA) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void ArduinoPinInit() | |
| { | |
| /* | |
| Arduino pin init : D0~D15 | |
| */ | |
| // D15 - (B8) | |
| port = GPIOB, pin = GPIO_PIN_8; | |
| __HAL_RCC_GPIOB_CLK_ENABLE(); | |
| GPIO_InitStruct.Pin = pin; | |
| HAL_GPIO_Init(port, &GPIO_InitStruct); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : | |
| Date : 2017/08/09 | |
| By : CharlotteHonG | |
| Final: 2017/08/09 | |
| *****************************************************************/ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <sstream> | |
| #include <algorithm> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : 利用二進位找中值 | |
| Date : 2017/02/24 | |
| By : CharlotteHonG | |
| Final: 2017/02/24 | |
| *****************************************************************/ | |
| #include <iostream> | |
| #include <vector> | |
| #include <iomanip> | |
| #include <bitset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /***************************************************************** | |
| Name : 讀取特定格式文件 | |
| Date : 2017/06/06 | |
| By : CharlotteHonG | |
| Final: 2017/06/06 | |
| *****************************************************************/ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> |