본문 바로가기
728x90

전체 글162

CAN 통신 프로토컬(Controller Area Network) 💡 CAN 통신이란? 차량 내에서 호스트 컴퓨터 없이 마이크로 컨트롤러나 장치들이 서로 통신하기 위해 설계된 표준 통신 규격이다. 최근에는 차량뿐만 아니라 산업용 자동화기기나 의료용 장비에서도 사용된다. CAN 통신은 각 제어기들 간의 통신을 위해 주로 사용되는 non-host 버스 방식의 메시지 기반 네트워크 프로토콜이다. CAN 통신은 OBD-II라고 불리는 차량 진단용 통신 표준의 5대 프로토콜 중 하나로 포함되어 있다. (OBD-II의 5대 프로토콜 : SAE J1850 PWM, SAE J1850 VPW, ISO 9141-2, ISO 14230 KWP2000, ISO 15765 CAN) 💡 역사 💡 CAN 통신 특징 및 장점 CAN 통신은 여러 개의 ECU(electronic control uni.. 2022. 1. 20.
mac m1 .rar 압축 파일 열기 app store에서 The Unarchiver를 다운로드한다. 무료다!! 설치가 완료되면 .rar 파일을 더블 클릭한다. 그러면 압축 풀기 완료!! 2022. 1. 20.
leetcode 849) Maximize Distance to Closest Person LV. Medium 🧐 https://leetcode.com/problems/maximize-distance-to-closest-person/ Maximize Distance to Closest Person - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You are given an array representing a row of seats where seats[i] = 1 represents a person sitting in the ith seat.. 2022. 1. 19.
leetcode 142) Linked List Cycle II LV. Medium 🧐 https://leetcode.com/problems/linked-list-cycle-ii/ Linked List Cycle II - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given the head of a linked list, return the node where the cycle begins. If there is no cycle, return null. There is a cycle in a linked list i.. 2022. 1. 19.
PlatformIO Library 추가하기 VSCode - PlatformIO로 아두이노 프로젝트를 진행하는 중 CAN 통신과 OBD2 헤더가 없어서 에러가 났다!!! 보통은 Arduino IDE처럼 library에 들어가 헤더를 검색해 다운을 받으면 되지만 CAN를 검색해도 안 나옴! (Platform IDE - HOME - 왼쪽 Libraries로 들어가면 헤더 검색 가능) PlatformIO Registry에 들어가서 라이브러리를 다운받았다 https://registry.platformio.org/ PlatformIO Registry The world's first package and project dependency management solution for embedded development registry.platformio.org.. 2022. 1. 19.
CPP Enum(enumerate) Enum이란? 열거형, enumerate에서 나온 키워드다. enum를 통해 자기만의 자료형을 만들 수 있다 = 사용자 정의 자료형 아래와 같이 enum은 열거자를 가지는데, 열거자는 ;이 아니라 ,로 구분된다. enum DayWeak { MON, TUE, WEN, THU, FRI, SAT, SUN }; enum을 정의 시에는 메모리가 할당되지 않고, 열거된 유형의 변수가 정의된 경우에 변수에 대해 메모리가 할당된다. 열거자 대체로 모두 대문자로 이름을 짓는다. 열거자는 enum와 같은 네임스페이스에 배치되므로, 열거자 이름은 같은 네임스페이스 내의 여러 enum에서 사용할 수 없다. 밑의 예제를 보자. enum dayWeak { MON }; enum classDay { MON 2022. 1. 19.
leetcode 290) Word Pattern LV. Easy 😎 https://leetcode.com/problems/word-pattern/ Word Pattern - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given a pattern and a string s, find if s follows the same pattern. Here follow means a full match, such that there is a bijection between a letter in pattern an.. 2022. 1. 18.
leetcode 605) Can Place Flowers LV. Easy 😎 https://leetcode.com/problems/can-place-flowers/ Can Place Flowers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots. Given an inte.. 2022. 1. 18.
leetcode 1345) Jump Game IV LV. Hard 🥵 https://leetcode.com/problems/jump-game-iv/ Jump Game IV - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문제 Given an array of integers arr, you are initially positioned at the first index of the array. In one step you can jump from index i to index: i + 1 where: i + 1 .. 2022. 1. 18.
728x90