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
int pinLED = 13; | |
int ledStatus = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(pinLED, OUTPUT); | |
Serial.println("usage : write (turn on | turn off)"); | |
} |
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
int pinLED =13; | |
int aPinLed[8] = {13, 12 ,11, 10, 9, 8, 7, 6}; | |
void setup() { | |
// put your setup code here, to run once: | |
for(int i=0; i<8; i++) { | |
pinMode(aPinLed[i], OUTPUT); | |
} | |
} |
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 setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(13, OUTPUT); | |
} | |
void loop() { | |
} |
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
#include <cstdio> | |
int a[1000000]; | |
int b[1000000]; | |
void merge(int start, int end) { | |
int mid = (start + end) / 2; | |
int i = start; | |
int j = mid + 1; | |
int k = 0; |
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
int pinSwitch = 13; | |
int pinLed = 12; | |
int ledStatus = LOW; | |
int flag = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(pinSwitch, INPUT); | |
pinMode(pinLed, OUTPUT); |
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
uint8_t aFndData[16] = {0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x27, | |
0x7F, 0x6F, 0x77, 0x7C, 0x39, 0x5E, 0x79, 0x71}; | |
uint8_t aFndSelData[6] = {0x3E, 0x3D, 0x3B, 0x37, 0x2F, 0x1F}; | |
int aPinFndData[8] = {13, 12, 11, 10, 9, 8, 7, 6}; | |
int aPinFndSel[6] = {5, 4, 3, 2, 1, 0}; | |
void setup() { | |
// put your setup code here, to run once: | |
for(int i=0; i<8; i++) { |
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
#include <cstdio> | |
int a[500001]; | |
int b[500001]; | |
long long ans = 0; | |
void merge(int start, int end) { | |
int mid = (start + end) / 2; | |
int i = start; | |
int j = mid + 1; |
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
#include <deque> | |
#include <vector> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
typedef struct __shark { | |
int s, d, z; | |
bool move; |
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
/* USER CODE BEGIN Header */ | |
/** | |
****************************************************************************** | |
* @file : main.c | |
* @brief : Main program body | |
****************************************************************************** | |
* @attention | |
* | |
* <h2><center>© Copyright (c) 2019 STMicroelectronics. | |
* All rights reserved.</center></h2> |
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
uint8_t aFndData[16] = {0x3F, 0x06, 0x5B, 0x4F, 0x66, 0x6D, 0x7D, 0x27, | |
0x7F, 0x6F, 0x77, 0x7C, 0x39, 0x5E, 0x79, 0x71}; | |
uint8_t aFndSelData[6] = {0x3E, 0x3D, 0x3B, 0x37, 0x2F, 0x1F}; | |
int aPinFndData[8] = {13, 12, 11, 10, 9, 8, 7, 6}; | |
int aPinFndSel[6] = {5, 4, 3, 2, 1, 0}; | |
void setup() { | |
// put your setup code here, to run once: | |
for(int i=0; i<8; i++) { |