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 <string> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
int cnt[26]; | |
int main(void) { | |
ios_base::sync_with_stdio(false); |
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 <queue> | |
#include <vector> | |
#include <iostream> | |
using namespace std; | |
#define max(n, m) n > m ? n : m | |
vector<pair<int, int>> world[10001]; | |
vector<pair<int, int>> back[10001]; |
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 recv = 13; | |
int trans = 3; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(115200); | |
pinMode(recv, INPUT); | |
pinMode(trans, OUTPUT); | |
digitalWrite(trans, HIGH); |
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 <IRremote.h> | |
int remote = A0; | |
IRrecv irrecv(remote); | |
decode_results results; | |
void setup() { | |
Serial.begin(115200); | |
irrecv.enableIRIn(); | |
pinMode(remote, INPUT); |
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
/* | |
* exti.c | |
* | |
* Created: 2019-07-07 오전 10:56:40 | |
* Author: user | |
*/ | |
#include "exti.h" | |
volatile int bcnt; |
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
/* | |
* servo.c | |
* | |
* Created: 2019-06-30 오후 3:41:18 | |
* Author : yeong | |
*/ | |
#include <avr/io.h> | |
#include "timer3.h" | |
#include "switch.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
/* | |
* eeprom.c | |
* | |
* Created: 2019-07-13 오후 8:59:22 | |
* Author: yeong | |
*/ | |
#include "eeprom.h" | |
#define SPI_SS PB0 |
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
#define EEPROM_PAGE_SIZE 16 | |
#define EEPROM_TOTAL_BYTE 128 | |
void EEPROM_eraseALL(void) | |
{ | |
uint8_t i; | |
uint16_t pageAddress = 0; | |
while(pageAddress < EEPROM_TOTAL_BYTE) { | |
EEPROM_writeEnable(); |
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
/* | |
* w25q64.c | |
* | |
* Created: 2019-07-14 오전 2:58:29 | |
* Author : yeong | |
*/ | |
#define F_CPU 16000000UL | |
#include <avr/io.h> | |
#include <util/delay.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
#include <vector> | |
#include <cstring> | |
#include <iostream> | |
#include <algorithm> | |
using namespace std; | |
vector<vector<int>> mat; | |
int nusang[3]; |