Skip to content

Instantly share code, notes, and snippets.

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)");
}
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);
}
}
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
pinMode(13, OUTPUT);
}
void loop() {
}
#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;
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);
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++) {
#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;
#include <deque>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
typedef struct __shark {
int s, d, z;
bool move;
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>&copy; Copyright (c) 2019 STMicroelectronics.
* All rights reserved.</center></h2>
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++) {