본문 바로가기
728x90
leetcode 525) Contiguous Array LV. Medium 🧐 https://leetcode.com/problems/contiguous-array/description/ Contiguous Array - 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 binary array nums, return the maximum length of a contiguous subarray with an equal number of 0 and 1. Example 1: Input: nums = [0,.. 2022. 2. 5.
leetcode 23) Merge k Sorted Lists LV. Hard 🥵 https://leetcode.com/problems/merge-k-sorted-lists/ Merge k Sorted Lists - 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 of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-.. 2022. 2. 5.
leetcode 1672) Richest Customer Wealth LV. Easy 😎 https://leetcode.com/problems/richest-customer-wealth/ Richest Customer Wealth - 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 m x n integer grid accounts where accounts[i][j] is the amount of money the i​​​​​​​​​​​th​​​​ customer has in the j​​​​​​.. 2022. 2. 1.
leetcode 121) Best Time to Buy and Sell Stock LV. Easy 😎 https://leetcode.com/problems/best-time-to-buy-and-sell-stock/ Best Time to Buy and Sell Stock - 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 prices where prices[i] is the price of a given stock on the ith day. You want to maximize your profi.. 2022. 2. 1.
leetcode 189) Rotate Array LV. Medium 🧐 https://leetcode.com/problems/rotate-array/ Rotate Array - 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, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: nums = [1,2,3,4,5,6,7], k = 3 Output: [5,6,7,1,2,3,4] Expl.. 2022. 1. 30.
CAN 통신 ID 값이 뭘 의미하는지 & OBD Broadcast에 관하여 CAN 통신을 이해한 줄 알았는데 막상 코드로 구현하려니 헷갈리는 부분이 너무 많았다. 이번 글을 통해 내가 헷갈렸던 부분을 정리하려고 한다. CAN 통신 수신 송신 데이터 CAN ID는 11비트를 사용하는 경우 반드시 0x7DF로 해야 한다. ECU의 브로드캐스트 주소 : 0x7DF 이 부분이 헷갈렸다. ECU의 정보를 가져오기 위해 ID값에 브로드캐스트 address 값만 넣으면 ID값이 왜 필요한 거지? 각각의 ECU는 모든 메시지를 받고 이 메시지가 자신에게 필요한 메시지인지를 판별한다는데, 브로드캐스트 주소로 메시지를 보내면 도대체 ECU는 이 메시지가 자신에게 필요한 메시지인지 어떻게 판별하지? 자동차별로 ID값이 다르다는데 그 ID값을 어떻게 찾지? OBD 정보를 얻기 위해서 브로드캐스트 주.. 2022. 1. 28.
CAN OBDII 통신 관련 링크 & 파일 모음 CAN 통신을 개발하면서 정보가 너무 없어서 힘들었다😭 개발하면서 찾은 CAN 통신 관련 링크와 pdf를 첨부하니 다른 분들은 레퍼런스 찾는데 너무 많은 시간을 쏟지 않길... https://en.wikipedia.org/wiki/OBD-II_PIDs OBD-II PIDs - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search OBD-II PIDs (On-board diagnostics Parameter IDs) are codes used to request data from a vehicle, used as a diagnostic tool. SAE standard J1979 defines many OBD-II.. 2022. 1. 28.
CAN통신 MCP2515 Mask와 Filter CAN 통신으로 자동차와의 통신을 구현하려고 하는데.. 예제 코드를 보니 Mask와 Filter를 해줬다. 근데 내가 지금까지 공부한 개념에는 Mask와 Filter는 없었는데.. 인터넷에 찾아도 제대로 나오지 않고ㅠㅠ MCP2515 Datasheet를 봤더니 Block Diagram에서 mask와 filter를 찾을 수 있었다. Mask와 Filter의 개념을 아직 이해하지는 못했지만.. 아마도 TX와 RX로 받아온 데이터를 처리(필요 없는 값을 거르는..?)하는 역할을 하는 것 같다.. 더 자세한 내용을 찾게 되면 밑에 추가로 적도록 하겠다. Mask와 Filter는 CAN Message 수신 시 특정한 ID 또는 어떤 범위의 ID만 받기 위한 설정! Mask는 Filter의 사용 여부(Enable/.. 2022. 1. 27.
티스토리 블로그 Robots.txt 변경하기 블로그를 열심히 써도 아무도 안 오길래.. 블로그 검색 누락을 확인해봤더니 전부 누락..! 😤 블로그 검색 누락을 확인하고 싶다면 밑에 링크 들어가기! 더보기 http://blogutil24.com/BlogCollectionFAction.do 블로그 운영 팁 블로그 운영 팁 서비스를 이용하면 애드센스 관련된 포스트들만 쉽게 검색을 할 수도 있고, 내용도 체계적으로 공부를 할 수 있습니다.검증된 블로그들만 검색이 되기 때문에 애드센스 초보자 blogutil24.com 티스토리에서 robots.txt 변경을 금지해놔서 네이버 검색은 대부분 막혀있었다.. 해결 방법! 블로그 관리 - 왼쪽 메뉴 바 - 플로그인 에 들어간다. 메타 태그 등록으로 들어간다. 밑에 그림과 같이 총 5개를 추가해준다. 밑에 코드를 적.. 2022. 1. 27.
CAN 모듈 Board별 SPI_CS_PIN 핀번호 CAN 모듈이 아두이노와 통신할 때 SPI 통신을 사용한다. CAN 모듈을 아두이노에 연결해서 쓸 때 SPI_CS_PIN의 핀번호로 CAN를 초기화해줘야 한다. #define SPI_CS_PIN 9 MCP_CAN CAN(SPI_CS_PIN); SPI CS 관련 Reference https://en.wikipedia.org/wiki/Chip_select Chip select - Wikipedia An example SPI with a master and three slave select lines. Note that all four chips share the SCLK, MISO, and MOSI lines but each slave has its own slave select. Chip select (C.. 2022. 1. 27.
728x90